class RetentionMagicGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) def copy_initializer_file copy_file "initializer.rb", "config/initializers/retention_magic.rb" end end