Skip to content

Commit

Permalink
Rails::Generators::AppBase::GemfileEntry needs anonymous superclass
Browse files Browse the repository at this point in the history
it has some methods that override the accessors and calls the original accessors via `super`

this partially reverts 9360b6b
  • Loading branch information
amatsuda committed Jan 13, 2017
1 parent b1a2aee commit 4ee3a8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion railties/lib/rails/generators/app_base.rb
Expand Up @@ -209,7 +209,7 @@ def sqlite3? # :doc:
!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
Expand Down

0 comments on commit 4ee3a8f

Please sign in to comment.