Sha256: 01751a555253d2f2a04f05af8f1af509cc4680773e4306101ed14b0b560febdc
Contents?: true
Size: 989 Bytes
Versions: 96
Compression:
Stored size: 989 Bytes
Contents
module ActiveScaffold::Config class Customize < Base self.crud_type = :read def initialize(core_config) @core = core_config # inherit from global scope end # global level configuration # -------------------------- # the ActionLink for this action cattr_reader :link @@link = ActiveScaffold::DataStructures::ActionLink.new('show_customize', :label => :customize, :type => :table, :security_method => :customize_authorized?) # instance-level configuration # ---------------------------- # provides access to the list of columns specifically meant for this action to use def columns unless @columns self.columns = @core.columns._inheritable self.columns.exclude @core.columns.active_record_class.locking_column.to_sym end @columns end def columns=(val) @columns = ActiveScaffold::DataStructures::ActionColumns.new(*val) @columns.action = self end end end
Version data entries
96 entries across 96 versions & 1 rubygems