diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-17 12:53:38 -0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-17 14:26:34 -0800 |
commit | 8b2f801ed8690dcbc61d62e6b3518efaac70a4a4 (patch) | |
tree | 594eb88747964b1d96109d81cb7912ee74ef6b42 /activerecord/test | |
parent | fe2f168d40385a0412f41c1a2a44a5536cada8df (diff) | |
download | rails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.tar.gz rails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.tar.bz2 rails-8b2f801ed8690dcbc61d62e6b3518efaac70a4a4.zip |
converted migrations to support instance methods
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index f8eabd884a..acb63d0031 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -18,10 +18,10 @@ if ActiveRecord::Base.connection.supports_migrations? class ActiveRecord::Migration class <<self attr_accessor :message_count - def puts(text="") - self.message_count ||= 0 - self.message_count += 1 - end + end + def puts(text="") + self.class.message_count ||= 0 + self.class.message_count += 1 end end |