Sha256: 9fec6f71ae3d93ef4cef9b684e8370c4a3b01a5a57ff20b2fab00a250c636a01
Contents?: true
Size: 733 Bytes
Versions: 96
Compression:
Stored size: 733 Bytes
Contents
# map.resources :<%=@singular_name.pluralize%>, :active_scaffold => true, :collection => {:browse => :get}, :member => {:select => :post} active_scaffold :<%=@singular_name.pluralize%> do |config| config.actions << :customize config.actions << :export_tool config.actions << :print_list config.actions.swap :field_search, :search config.list.sorting = {:id => 'DESC'}<% cols = all_columns(@model_instance, @singular_name, { :as_columns => true, :exclude => %w(id created_on created_at updated_on updated_at lock_version) }) %> config.columns = [<%= cols %>] config.create.columns = config.update.columns = config.show.columns = config.list.columns = config.field_search.columns = [<%= cols %>] end
Version data entries
96 entries across 96 versions & 1 rubygems