On Domingo, 20 de Diciembre de 2009 05:21:09 Ben Greenberg escribió:
> Hi all,
>
> I've discovered that doing a config.actions.exclude :nested does not
> work when doing a local config.  It does work when set in global
> config.
>
> Looking at the code, the reason is clear: in lib/active_scaffold.rb in
> the active_scaffold method (line 59), links_for_associations is called
> before the configuration is updated.  The solution is simple: just
> move the call to links_for_associations to below the configuration
> updating methods.
>
> Is this a bug or is there a reason why links_to_associations is called
> where it is?

It's called before configuration block in order to customize links in that 
block.

>
> Thanks
> Ben
>
> --
>
> 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.

-- 
Sergio Cambra .:: entreCables S.L. ::.
Mariana Pineda 23, 50.018 Zaragoza
T) 902 021 404 F) 976 52 98 07 E) [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