Class: ActiveScaffold::Config::Show
- Defined in:
- lib/active_scaffold/config/show.rb
Constant Summary collapse
- @@link =
ActiveScaffold::DataStructures::ActionLink.new('show', :label => :show, :type => :member, :security_method => :show_authorized?, :ignore_method => :show_ignore?)
- @@inline_links =
false
Constants inherited from Base
Instance Attribute Summary collapse
-
#inline_links ⇒ Object
instance-level configuration —————————-.
-
#label ⇒ Object
writeonly
the label for this action.
-
#link ⇒ Object
the ActionLink for this action.
Attributes inherited from Base
#action_group, #core, #formats, #user_settings_key
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Show
constructor
A new instance of Show.
Methods inherited from Base
#crud_type, inherited, #label, #model_id, #new_user_settings, #setup_user_setting_key, #user
Methods included from ActiveScaffold::Configurable
#configure, #method_missing, #respond_to_missing?
Constructor Details
#initialize(core_config) ⇒ Show
Returns a new instance of Show.
4 5 6 7 |
# File 'lib/active_scaffold/config/show.rb', line 4 def initialize(core_config) super self.inline_links = self.class.inline_links end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable
Instance Attribute Details
#inline_links ⇒ Object
instance-level configuration
20 21 22 |
# File 'lib/active_scaffold/config/show.rb', line 20 def inline_links @inline_links end |
#label=(value) ⇒ Object (writeonly)
the label for this action. used for the header.
25 26 27 |
# File 'lib/active_scaffold/config/show.rb', line 25 def label=(value) @label = value end |
#link ⇒ Object
the ActionLink for this action
23 24 25 |
# File 'lib/active_scaffold/config/show.rb', line 23 def link @link end |