Class: Marley::Plugins::OrmMaterializedPath

Inherits:
Plugin show all
Defined in:
lib/marley/plugins/orm_materialized_path.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Instance Method Summary collapse

Methods inherited from Plugin

#config

Methods included from Utils::ClassAttrs

#class_attr, #lazy_class_attrs

Constructor Details

#initialize(opts = {}) ⇒ OrmMaterializedPath

Returns a new instance of OrmMaterializedPath.



8
9
10
11
12
13
14
# File 'lib/marley/plugins/orm_materialized_path.rb', line 8

def initialize(opts={})
  super
  [ClassMethods,InstanceMethods].each do |mod|
    mod.const_set(:PATH_COL,@opts[:path_col])
    mod.const_set(:SEP,@opts[:path_separator])
  end
end

Instance Method Details

#apply(klasses) ⇒ Object



5
6
7
# File 'lib/marley/plugins/orm_materialized_path.rb', line 5

def apply(klasses)
  super
end