From ce7802072eaa75288bda4ae448b5af6031560fda Mon Sep 17 00:00:00 2001 From: Washington Botelho Date: Wed, 14 Feb 2018 14:44:14 -0200 Subject: [PATCH] rm: config via initializer was dropped table name cannot be change after load --- lib/generators/rating/install_generator.rb | 6 ------ .../rating/templates/config/initializers/rating.rb | 3 --- 2 files changed, 9 deletions(-) delete mode 100644 lib/generators/rating/templates/config/initializers/rating.rb diff --git a/lib/generators/rating/install_generator.rb b/lib/generators/rating/install_generator.rb index 0dd8853..c810816 100644 --- a/lib/generators/rating/install_generator.rb +++ b/lib/generators/rating/install_generator.rb @@ -4,12 +4,6 @@ module Rating class InstallGenerator < Rails::Generators::Base source_root File.expand_path('../templates', __FILE__) - desc 'Creates Rating initializer' - - def copy_initializer - copy_file 'config/initializers/rating.rb', 'config/initializers/rating.rb' - end - desc 'Creates Rating migration' def create_migration diff --git a/lib/generators/rating/templates/config/initializers/rating.rb b/lib/generators/rating/templates/config/initializers/rating.rb deleted file mode 100644 index fd789c5..0000000 --- a/lib/generators/rating/templates/config/initializers/rating.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Rating.configure do |config| -# config.models rate: '::Rating::Rate', rating: '::Rating::Rating' -# end