Class: ActiveScaffold::Config::Mark

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

Constant Summary collapse

@@mark_all_mode =
:search

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) ⇒ Mark

Returns a new instance of Mark.


13
14
15
16
17
18
# File 'lib/active_scaffold/config/mark.rb', line 13

def initialize(core_config)
  super
  @mark_all_mode = self.class.mark_all_mode
  @core.model.send(:include, ActiveScaffold::MarkedModel) unless @core.model < ActiveScaffold::MarkedModel
  add_mark_column
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class ActiveScaffold::Configurable

Instance Attribute Details

#mark_all_modeObject

Returns the value of attribute mark_all_mode


11
12
13
# File 'lib/active_scaffold/config/mark.rb', line 11

def mark_all_mode
  @mark_all_mode
end