diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-01-13 16:21:12 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-01-13 16:22:15 +0900 |
commit | 4ee3a8f4de380867d5a436b586f2252bce7e29ff (patch) | |
tree | de05122716c8b0e2bd5f7f8b2c0a93d24df17cfb /railties | |
parent | b1a2aee3e190d65156474bca223edffaedb740a5 (diff) | |
download | rails-4ee3a8f4de380867d5a436b586f2252bce7e29ff.tar.gz rails-4ee3a8f4de380867d5a436b586f2252bce7e29ff.tar.bz2 rails-4ee3a8f4de380867d5a436b586f2252bce7e29ff.zip |
Rails::Generators::AppBase::GemfileEntry needs anonymous superclass
it has some methods that override the accessors and calls the original accessors via `super`
this partially reverts 9360b6be63b7a452535699bcf6ae853df7f5eea7
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/app_base.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/lib/rails/generators/app_base.rb b/railties/lib/rails/generators/app_base.rb index 2297a31b6d..ea88afe9f4 100644 --- a/railties/lib/rails/generators/app_base.rb +++ b/railties/lib/rails/generators/app_base.rb @@ -209,7 +209,7 @@ module Rails !options[:skip_active_record] && options[:database] == "sqlite3" end - GemfileEntry = Struct.new(:name, :version, :comment, :options, :commented_out) do + class GemfileEntry < Struct.new(:name, :version, :comment, :options, :commented_out) def initialize(name, version, comment, options = {}, commented_out = false) super end |