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?, ignore_method: :update_ignore?)
- @@nested_links =
false- @@add_locking_column =
true
Constants inherited from Base
Instance Attribute Summary collapse
-
#add_locking_column ⇒ Object
instance-level configuration —————————-.
- #hide_nested_column ⇒ Object
-
#nested_links ⇒ Object
instance-level configuration —————————-.
Attributes inherited from Form
#field_descriptions, #floating_footer, #label, #link, #multipart, #persistent, #refresh_list, #show_unauthorized_columns
Attributes inherited from Base
#action_group, #core, #formats, #user_settings_key
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
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.
6 7 8 9 10 |
# File 'lib/active_scaffold/config/update.rb', line 6 def initialize(core_config) super self.nested_links = self.class.nested_links self.add_locking_column = self.class.add_locking_column end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable
Instance Attribute Details
#add_locking_column ⇒ Object
instance-level configuration
35 36 37 |
# File 'lib/active_scaffold/config/update.rb', line 35 def add_locking_column @add_locking_column end |
#hide_nested_column ⇒ Object
39 40 41 |
# File 'lib/active_scaffold/config/update.rb', line 39 def hide_nested_column @hide_nested_column.nil? || @hide_nested_column end |
#nested_links ⇒ Object
instance-level configuration
35 36 37 |
# File 'lib/active_scaffold/config/update.rb', line 35 def nested_links @nested_links end |
Class Method Details
.link ⇒ Object
global level configuration
the ActionLink for this action
15 16 17 |
# File 'lib/active_scaffold/config/update.rb', line 15 def self.link @@link end |
.link=(val) ⇒ Object
19 20 21 |
# File 'lib/active_scaffold/config/update.rb', line 19 def self.link=(val) @@link = val end |