Class: ActiveScaffold::Config::Customize

Inherits:
Base show all
Defined in:
lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/customize.rb

Constant Summary collapse

ActiveScaffold::DataStructures::ActionLink.new('show_customize', :label => :customize, :type => :table, :security_method => :customize_authorized?)

Instance Attribute Summary

Attributes inherited from Base

#user

Instance Method Summary collapse

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(core_config) ⇒ Customize

Returns a new instance of Customize.



6
7
8
9
10
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/customize.rb', line 6

def initialize(core_config)
  @core = core_config

  # inherit from global scope
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Method Details

#columnsObject

provides access to the list of columns specifically meant for this action to use



22
23
24
25
26
27
28
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/customize.rb', line 22

def columns
  unless @columns
    self.columns = @core.columns._inheritable 
    self.columns.exclude @core.columns.active_record_class.locking_column.to_sym
  end
  @columns
end

#columns=(val) ⇒ Object



29
30
31
32
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/customize.rb', line 29

def columns=(val)
  @columns = ActiveScaffold::DataStructures::ActionColumns.new(*val)
  @columns.action = self
end