2010/5/5 Sergio Cambra .:: entreCables S.L. ::. <[email protected]>:
> You can use a before_filter:
>
> before_filter :set_associated_limit
> protected
> def set_associated_limit
>        active_scaffold_config.columns[:cli_outs].associated_limit = 
> action_name ==
> 'show' ? nil : 0
> end


Great! But just a note: it must be a public method, if not it doesn't work. :)


-- 
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