Module: HairTrigger::Migrator

Defined in:
lib/hair_trigger/migrator.rb

Defined Under Namespace

Modules: ProperTableNameWithHashAwarenessSupport

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



12
13
14
15
16
17
18
# File 'lib/hair_trigger/migrator.rb', line 12

def extended(base)
  base.class_eval do
    class << self
      prepend ProperTableNameWithHashAwarenessSupport
    end
  end
end

.included(base) ⇒ Object



20
21
22
23
24
# File 'lib/hair_trigger/migrator.rb', line 20

def included(base)
  base.instance_eval do
    prepend ProperTableNameWithHashAwarenessSupport
  end
end