Class: ActiveScaffold::Config::Show

Inherits:
Base show all
Defined in:
lib/active_scaffold/config/show.rb

Constant Summary collapse

ActiveScaffold::DataStructures::ActionLink.new('show', :label => :show, :type => :member, :security_method => :show_authorized?, :ignore_method => :show_ignore?)
false

Constants inherited from Base

Base::NO_FORMATS

Instance Attribute Summary collapse

Attributes inherited from Base

#action_group, #core, #formats, #user_settings_key

Instance Method Summary collapse

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

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

the ActionLink for this action



23
24
25
# File 'lib/active_scaffold/config/show.rb', line 23

def link
  @link
end