before_filter :update_table_config
list.columns = [:name, :group, :email, :schedule_magic, :order]
def update_table_config
if session[:settings].wsettings['images'] == 1
active_scaffold_config.list.columns = [:image, :name, :group, :email,
:schedule_magic, :order]
end
end
Is there any alternative to set the image first column instead of declare
twice all fields?
--
You received this message because you are subscribed to the Google Groups
"ActiveScaffold : Ruby on Rails Gem" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/activescaffold.
For more options, visit https://groups.google.com/d/optout.