require 'rails/generators' require 'rails/generators/named_base' module LinkToAction module Generators class InstallGenerator < Rails::Generators::Base desc "Copy LinkToAction configuration file" source_root File.expand_path('../templates', __FILE__) def copy_initializers copy_file 'link_to_action.rb', 'config/initializers/link_to_action.rb' end def copy_locale_file copy_file 'en.yml', 'config/locales/link_to_action.en.yml' end end end end