Class: ActiveScaffold::Config::Show
- Defined in:
- lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb
Constant Summary collapse
- @@link =
ActiveScaffold::DataStructures::ActionLink.new('show', :label => :show, :type => :record, :security_method => :show_authorized?)
Instance Attribute Summary collapse
- #label ⇒ Object
-
#link ⇒ Object
the ActionLink for this action.
Attributes inherited from Base
Instance Method Summary collapse
-
#columns ⇒ Object
provides access to the list of columns specifically meant for this action to use.
- #columns=(val) ⇒ Object
-
#initialize(core_config) ⇒ Show
constructor
A new instance of Show.
Methods inherited from Base
#crud_type, #formats, #formats=, inherited
Methods included from ActiveScaffold::Configurable
Constructor Details
#initialize(core_config) ⇒ Show
Returns a new instance of Show.
5 6 7 8 9 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb', line 5 def initialize(core_config) @core = core_config # start with the ActionLink defined globally @link = self.class.link.clone end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable
Instance Attribute Details
#label ⇒ Object
22 23 24 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb', line 22 def label @label ? as_(@label) : as_(:show_model, :model => @core.label(:count => 1)) end |
#link ⇒ Object
the ActionLink for this action
19 20 21 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb', line 19 def link @link end |
Instance Method Details
#columns ⇒ Object
provides access to the list of columns specifically meant for this action to use
27 28 29 30 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb', line 27 def columns self.columns = @core.columns._inheritable unless @columns # lazy evaluation @columns end |
#columns=(val) ⇒ Object
31 32 33 34 |
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/show.rb', line 31 def columns=(val) @columns = ActiveScaffold::DataStructures::ActionColumns.new(*val) @columns.action = self end |