Sha256: aeb10f8e6895747fc32d3c975a45be6edddb7a34b5b525766dfba9e4bd0a1fd5
Contents?: true
Size: 836 Bytes
Versions: 2
Compression:
Stored size: 836 Bytes
Contents
This works with Rails 3.2 and ActiveScaffold >= 3.3 Usage: active_scaffold :model do |conf| conf.actions.add :config_list end Overview A plugin for Active Scaffold that provides the ability to choose the column to show in the scaffold list at run-time The configuration data will be saved on the session. It can be saved on the DB defining a method to return a record for current controller, or empty record if user has no list configuration, and setting config_list to use that method. conf.config_list.save_to_user = :config_list_for class User < ActiveRecord::Base has_many :list_configurations def config_list_for(controller_id) list_configurations.where(:controller_id => controller_id).first_or_initialize end end The model storing list configuration must have a config_list attribute storing the config list.
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
active_scaffold_config_list-3.2.2.1 | README |
active_scaffold_config_list-3.2.2 | README |