lib/generators/tongues/initializer_generator.rb in tongues-0.0.9 vs lib/generators/tongues/initializer_generator.rb in tongues-0.0.10
- old
+ new
@@ -1,11 +1,12 @@
require 'rails/generators'
-class InitializerGenerator < Rails::Generators::Base
- source_root File.expand_path('../templates', __FILE__)
+module Tongues
+ class InitializerGenerator < Rails::Generators::Base
+ source_root File.expand_path('../templates', __FILE__)
- desc 'This generator creates an initializer for the api key.'
-
- def copy_initializer_file
- copy_file 'initializer.rb', 'config/initializers/tongues.rb'
+ desc 'This generator creates an initializer for the api key.'
+ def copy_initializer_file
+ copy_file 'initializer.rb', 'config/initializers/tongues.rb'
+ end
end
-end
+end
\ No newline at end of file