1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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 9360b6be63
This commit is contained in:
Akira Matsuda 2017-01-13 16:21:12 +09:00
parent b1a2aee3e1
commit 4ee3a8f4de

View file

@ -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