Class: ActiveScaffold::Config::Subform
- Defined in:
- lib/active_scaffold/config/subform.rb
Constant Summary collapse
- @@layout =
:horizontal
Constants inherited from Base
Instance Attribute Summary collapse
-
#layout ⇒ Object
instance-level configuration —————————-.
Attributes inherited from Base
#action_group, #core, #formats, #user_settings_key
Instance Method Summary collapse
-
#initialize(core_config) ⇒ Subform
constructor
A new instance of Subform.
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) ⇒ Subform
Returns a new instance of Subform.
3 4 5 6 |
# File 'lib/active_scaffold/config/subform.rb', line 3 def initialize(core_config) super @layout = self.class.layout # default layout end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable
Instance Attribute Details
#layout ⇒ Object
instance-level configuration
17 18 19 |
# File 'lib/active_scaffold/config/subform.rb', line 17 def layout @layout end |