Class: ActiveScaffold::Config::Subform

Inherits:
Base show all
Defined in:
lib/active_scaffold/config/subform.rb

Constant Summary collapse

@@layout =
:horizontal

Constants inherited from Base

Base::NO_FORMATS

Instance Attribute Summary collapse

Attributes inherited from Base

#action_group, #core, #formats, #user_settings_key

Instance Method Summary collapse

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

#layoutObject

instance-level configuration




17
18
19
# File 'lib/active_scaffold/config/subform.rb', line 17

def layout
  @layout
end