2010/10/18 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> No, it must be a class method, so use def self.condition_for....
>
> Also, it only should return condition part for ActiveRecord find method:
>
> def self.condition_for_Status_Flag_column(column, value, like_pattern)
>  ['clis.Status_Flag=?', value]
> end
>
> You will have to update your master branch because I have added support for
> custom condition methods even with blank values today.

Great, it works!


>> Am I right? anyhow:
>> - What to replace in TODO_WHAT_HERE?
>> - Do I need to add the LIMIT and ORDER BY in the query?
>>
>> PS: I couldn't find documentation for "condition_for" in the wiki ¿?
>>
>> Thanks a lot.
>
> It's documented in Search Overrides, inside API:
> http://github.com/activescaffold/active_scaffold/wiki/Search-Overrides

Thanks a lot :)


-- 
Iñaki Baz Castillo
<[email protected]>

-- 
You received this message because you are subscribed to the Google Groups 
"ActiveScaffold : Ruby on Rails plugin" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/activescaffold?hl=en.

Reply via email to