Class: RearmedRails::SetupGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/rearmed_rails/setup_generator.rb

Instance Method Summary collapse

Instance Method Details

#setupObject


6
7
8
9
10
11
12
# File 'lib/generators/rearmed_rails/setup_generator.rb', line 6

def setup
  create_file "config/initializers/rearmed_rails.rb", <<eos
RearmedRails.enabled_patches = #{File.read(File.join(File.dirname(__FILE__), '../../rearmed_rails/default_enabled_patches.hash'))}

RearmedRails.apply_patches!
eos
end