Initialize accessors to remove some warnings in Ruby 2.0

This commit is contained in:
Carlos Antonio da Silva 2012-11-19 12:52:09 -02:00
parent 133cdf0ec0
commit 7e10f38880
2 changed files with 4 additions and 7 deletions

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