Module: Mochigome::ModelExtensions

Defined in:
lib/model_extensions.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
# File 'lib/model_extensions.rb', line 3

def self.included(base)
  base.extend(ClassMethods)

  base.write_inheritable_attribute :mochigome_focus_settings, nil
  base.class_inheritable_reader :mochigome_focus_settings

  # FIXME: Unclear on how this should interact with inheritance...
  base.write_inheritable_attribute :mochigome_aggregation_settings_sets, {}
  base.class_inheritable_reader :mochigome_aggregation_settings_sets
end