Rake 0.9.2 breaks annotate-models

Well, gee, I just spent a lot of time noodling about with annotate-models 1.0.4. I have rake 0.9.2, and running annotate chirps like a worm…

<bla bla>gems/activerecord-3.1.0.rc1/lib/active_record/railties/databases.rake:3:in `<top (required)>’: undefined method `namespace’ for main:Object (NoMethodError)

That line is:

  1. require ‘active_support/core_ext/object/inclusion’
  2. db_namespace = namespace :db do
  3.   task :load_config => :rails_env do

The ‘require’ is new, and the assignment of the result of the namespace is new (from 3.0.7)

However, if I require rake 0.8.7 in the Gemfile, install it, and do

$ bundle exec annotate

everything works like a charm. I’m too tired to figure it out tonight, but rake’s upgrade has been painful.

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: