提交 4ee3a8f4 编写于 作者: A Akira Matsuda

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 9360b6be
上级 b1a2aee3
......@@ -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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册