There is a lot of magic in Rails that I'm trying to get my head around. Specifically, I get this error with Ruby -r24788 (today's snapshot) and Rails (fails both in 2.3.4 and edge).
I would like to work out if this is a 1.9.2 incompatibility with Rails or a bug in Ruby (most likely the latter): f...@studio:~/work/bar$ rake db:migrate --trace (snip) ** Execute db:migrate rake aborted! undefined method `singleton_method_added' for ActiveRecord::Migration:Class /home/foo/backup/work/bar/vendor/rails/activerecord/lib/active_record/migration.rb:297:in `singletonclass' /home/foo/backup/work/bar/vendor/rails/activerecord/lib/active_record/migration.rb:265:in `<class:Migration>' /home/foo/backup/work/bar/vendor/rails/activerecord/lib/active_record/migration.rb:261:in `<module:ActiveRecord>' /home/foo/backup/work/bar/vendor/rails/activerecord/lib/active_record/migration.rb:3:in `<top (required)>' /home/foo/backup/work/bar/vendor/rails/railties/lib/tasks/databases.rake:135:in `block (2 levels) in <top (required)>' (snip) It seems like its trying to call singleton_method_added before it actually is defined. I wanted to isolate a test case for the ruby parser - where is this called from, or how is the singleton instance callback set up? This is caused by the call (cattr_accessor): ActiveRecord::Migration.verbose = ... Any tips or documentation pointers would help. Thanks in advance. -- Cezary BagiĆski --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en -~----------~----~----~----~------~----~------~--~---
