lib/generators/titler/install/install_generator.rb in titler-1.0.2 vs lib/generators/titler/install/install_generator.rb in titler-1.2.0

- old
+ new

@@ -2,13 +2,19 @@ module Titler module Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) + desc "Creates Titler initializer and i18n for your application" - def create_titler_initializer - copy_file 'titler.rb', 'config/initializers/titler.rb' + def copy_initializer + template 'titler.rb', 'config/initializers/titler.rb' + puts "Initializer install complete." end + def copy_i18n + template 'titler.en.yml', 'config/locales/titler.en.yml' + puts "Localization install complete." + end end end end