Class: ActiveScaffold::Config::Update

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

Constant Summary collapse

ActiveScaffold::DataStructures::ActionLink.new('edit', :label => :edit, :type => :member, :security_method => :update_authorized?, :ignore_method => :update_ignore?)
false

Constants inherited from Base

Base::NO_FORMATS

Instance Attribute Summary collapse

Attributes inherited from Form

#label, #link, #multipart, #persistent, #refresh_list, #show_unauthorized_columns

Attributes inherited from Base

#action_group, #core, #formats, #user_settings_key

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Form

#multipart?

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) ⇒ Update

Returns a new instance of Update.


4
5
6
7
# File 'lib/active_scaffold/config/update.rb', line 4

def initialize(core_config)
  super
  self.nested_links = self.class.nested_links
end

Dynamic Method Handling

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

Instance Attribute Details

#hide_nested_columnObject


32
33
34
# File 'lib/active_scaffold/config/update.rb', line 32

def hide_nested_column
  @hide_nested_column.nil? ? true : @hide_nested_column
end

instance-level configuration



29
30
31
# File 'lib/active_scaffold/config/update.rb', line 29

def nested_links
  @nested_links
end

Class Method Details

global level configuration


the ActionLink for this action


12
13
14
# File 'lib/active_scaffold/config/update.rb', line 12

def self.link
  @@link
end

.link=(val) ⇒ Object


16
17
18
# File 'lib/active_scaffold/config/update.rb', line 16

def self.link=(val)
  @@link = val
end