Class: ActiveScaffold::Config::Update
- Defined in:
- lib/active_scaffold/config/update.rb
Constant Summary collapse
- @@link =
ActiveScaffold::DataStructures::ActionLink.new('edit', :label => :edit, :type => :member, :security_method => :update_authorized?)
- @@refresh_list =
false
- @@nested_links =
false
Instance Attribute Summary collapse
- #hide_nested_column ⇒ Object
-
#nested_links ⇒ Object
instance-level configuration —————————-.
-
#refresh_list ⇒ Object
whether we should refresh list after update or not.
Attributes inherited from Form
#label, #link, #multipart, #show_unauthorized_columns
Attributes inherited from Base
Class Method Summary collapse
-
.link ⇒ Object
global level configuration ————————– the ActionLink for this action.
- .link=(val) ⇒ Object
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Update
constructor
A new instance of Update.
Methods inherited from Form
Methods inherited from Base
#crud_type, #formats, #formats=, inherited, #label
Methods included from ActiveScaffold::Configurable
Constructor Details
#initialize(core_config) ⇒ Update
Returns a new instance of Update.
4 5 6 7 8 |
# File 'lib/active_scaffold/config/update.rb', line 4 def initialize(core_config) super self.nested_links = self.class.nested_links self.refresh_list = self.class.refresh_list end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable
Instance Attribute Details
#hide_nested_column ⇒ Object
33 34 35 |
# File 'lib/active_scaffold/config/update.rb', line 33 def hide_nested_column @hide_nested_column.nil? ? true : @hide_nested_column end |
#nested_links ⇒ Object
instance-level configuration
28 29 30 |
# File 'lib/active_scaffold/config/update.rb', line 28 def nested_links @nested_links end |
#refresh_list ⇒ Object
whether we should refresh list after update or not
38 39 40 |
# File 'lib/active_scaffold/config/update.rb', line 38 def refresh_list @refresh_list end |
Class Method Details
.link ⇒ Object
global level configuration
the ActionLink for this action
13 14 15 |
# File 'lib/active_scaffold/config/update.rb', line 13 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 |