Class: MonkeyPatch::Railtie

Inherits:
Rails::Railtie
  • Object
show all
Defined in:
lib/monkey_patch/railtie.rb

Instance Method Summary collapse

Instance Method Details

#load_patches!Object



9
10
11
12
13
# File 'lib/monkey_patch/railtie.rb', line 9

def load_patches!
  Dir.glob Rails.root.join("config/patches/**/*.rb") do |file|
    require file
  end
end