On Martes, 15 de Noviembre de 2011 09:38:32 Atastor escribió:
> Do I really have to configure two different sets of subgroups for create
> and update, each? Or is there a way to DRY this up?
> 

Yes, but you can use a loop:

[:create, :update].each do |action| 
  conf.send(action).columns.add_subgroup ...
end

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