提交 7e10f388 编写于 作者: C Carlos Antonio da Silva

Initialize accessors to remove some warnings in Ruby 2.0

上级 133cdf0e
......@@ -2,12 +2,10 @@
module ActiveRecord
class Migration
class << self
attr_accessor :message_count
end
class << self; attr_accessor :message_count; end
self.message_count = 0
def puts(text="")
ActiveRecord::Migration.message_count ||= 0
ActiveRecord::Migration.message_count += 1
end
......
......@@ -4,9 +4,8 @@ class Reference < ActiveRecord::Base
has_many :agents_posts_authors, :through => :person
class << self
attr_accessor :make_comments
end
class << self; attr_accessor :make_comments; end
self.make_comments = false
before_destroy :make_comments
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册