Class: MagicResource::Generators::InstallGenerator

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

Instance Method Summary collapse

Instance Method Details

#copy_initializerObject



7
8
9
# File 'lib/generators/magic_resource/install_generator.rb', line 7

def copy_initializer
  template 'magic-resource.rb', 'config/initializers/magic-resource.rb'
end

#copy_localesObject



11
12
13
# File 'lib/generators/magic_resource/install_generator.rb', line 11

def copy_locales
  directory 'config/locales'
end