Class: ActiveScaffold::Config::Update

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

Constant Summary collapse

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

Instance Attribute Summary collapse

Attributes inherited from Form

#link, #multipart

Attributes inherited from Base

#user

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Form

#columns, #columns=, #multipart?

Methods inherited from Base

#crud_type, #formats, #formats=, inherited

Methods included from ActiveScaffold::Configurable

#configure, #method_missing

Constructor Details

#initialize(*args) ⇒ Update

Returns a new instance of Update.



4
5
6
7
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb', line 4

def initialize(*args)
  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

Returns the value of attribute nested_links.



28
29
30
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb', line 28

def nested_links
  @nested_links
end

Class Method Details

global level configuration


the ActionLink for this action



12
13
14
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb', line 12

def self.link
  @@link
end

.link=(val) ⇒ Object



15
16
17
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb', line 15

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

Instance Method Details

#labelObject

the label= method already exists in the Form base class



24
25
26
# File 'lib/six-updater-web/vendor/plugins/active_scaffold/lib/active_scaffold/config/update.rb', line 24

def label
  @label ? as_(@label) : as_(:update_model, :model => @core.label(:count => 1))
end