Module: Milkshake::RailsExtentions::VendorBoot

Defined in:
lib/milkshake/rails_extentions/boot.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object



6
7
8
9
10
11
# File 'lib/milkshake/rails_extentions/boot.rb', line 6

def self.included(base)
  base.module_eval do
    alias_method :load_initializer_without_milkshake, :load_initializer
    alias_method :load_initializer, :load_initializer_with_milkshake
  end
end

Instance Method Details

#load_initializer_with_milkshakeObject



13
14
15
16
17
# File 'lib/milkshake/rails_extentions/boot.rb', line 13

def load_initializer_with_milkshake
  load_initializer_without_milkshake
  Milkshake.load!
  Milkshake.extender.extend_railties!
end