Initialize accessors to remove some warnings in Ruby 2.0
This commit is contained in:
parent
133cdf0ec0
commit
7e10f38880
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user