Class: ActiveRecord::ModelLoadedObserver

Inherits:
Object
  • Object
show all
Defined in:
lib/active_schema/active_record/base.rb

Instance Method Summary collapse

Instance Method Details

#update(event, klass) ⇒ Object



33
34
35
36
37
38
# File 'lib/active_schema/active_record/base.rb', line 33

def update(event, klass)
  case event 
  when :observed_class_inherited
    klass.active_schema_load_model if klass.active_schema_activated
  end
end