Class: Hist::InitializerGenerator

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

Instance Method Summary collapse

Instance Method Details

#config_initializer_copyObject



10
11
12
# File 'lib/generators/hist/initializer_generator.rb', line 10

def config_initializer_copy
  copy_file 'init/hist.rb', 'config/initializers/hist.rb' unless File::exists?('config/initializers/hist.rb')
end