mongoid / origin

A Ruby DSL for building MongoDB queries
http://mongoid.org/en/origin/index.html
MIT License
62 stars 29 forks source link

Error when using forwarding #39

Closed msaffitz closed 12 years ago

msaffitz commented 12 years ago

From the example in the docs.

1.9.3-p194 :001 > require 'origin'
true
1.9.3-p194 :002 > class Query
1.9.3-p194 :003?>     include Origin::Queryable
1.9.3-p194 :004?>   end
Query < Object
1.9.3-p194 :005 > 
1.9.3-p194 :006 >   class Band
1.9.3-p194 :007?>     extend Origin::Forwardable
1.9.3-p194 :008?>     select_with :query
1.9.3-p194 :009?>   
1.9.3-p194 :010 >       def self.query
1.9.3-p194 :011?>         Query.new
1.9.3-p194 :012?>       end
1.9.3-p194 :013?>   end
NoMethodError: undefined method `delegate' for #<Class:Band>
durran commented 12 years ago

Ahh. No active support I guess? I'll get this fixed quickly.

durran commented 12 years ago

I just release 1.0.4 which fixes this.

msaffitz commented 12 years ago

Thanks Durran!

-- Mike


@msaffitz :: Follow me on Twitter at http://bit.ly/pTGkDW

On Jul 7, 2012, at 3:52 PM, Durran Jordan wrote:

I just release 1.0.4 which fixes this.


Reply to this email directly or view it on GitHub: https://github.com/mongoid/origin/issues/39#issuecomment-6827272