guillermo / rake-hooks

Rake hooks let you add callbacks to rake tasks.
MIT License
70 stars 21 forks source link

undefined method `after` #4

Closed brendon closed 12 years ago

brendon commented 12 years ago

I've included rake-hooks in my rails 3.1.1 Gemfile for all environments and have created a rake file in lib/ exactly as your example on the homepage and just get:

rake aborted!
undefined method `after' for main:Object

What could I be doing wrong? I'm requiring the library at the top of the rake file.

guillermo commented 12 years ago

I will have a look when coming back home.

Can you post your Gemfile and also say which version of bundler (bundle --version) are you using?

brendon commented 12 years ago

Thanks Guillermo :)

My bundler version is 1.0.21 and here's the Gemfile:

https://gist.github.com/1365258

guillermo commented 12 years ago

Sorry by delay.

This issue should be fixed.

If you have time, please upgrade to the new version.

brendon commented 12 years ago

Hi Guillermo, thanks for following this up for me. I managed to work around my issue with normal rake overloading techniques but will give it a go next time it comes up :)

Have a great day! :)

Brendon