#364 invalid
Tony Pitale

dm-aggregates current_scope NoMethodError

Reported by Tony Pitale | June 10th, 2008 @ 03:15 PM

When calling Resource#count a NoMethodError on current_scope is raised.

irb(main):002:0> SaleItemDetail.count

NoMethodError: undefined method `current_scope' for SaleItemDetail:Class

from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.9.1/lib/dm-core/resource.rb:792:in `method_missing'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/repository.rb:26:in `send'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/repository.rb:26:in `scoped_query'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/repository.rb:4:in `count'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/resource.rb:25:in `count'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/resource.rb:133:in `with_repository_and_property'

from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.9.1/lib/dm-core.rb:179:in `repository'

from /opt/local/lib/ruby/gems/1.8/gems/dm-core-0.9.1/lib/dm-core/resource.rb:580:in `repository'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/resource.rb:131:in `with_repository_and_property'

from /opt/local/lib/ruby/gems/1.8/gems/dm-aggregates-0.9.1/lib/dm-aggregates/resource.rb:24:in `count'

from (irb):2

from :0

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

People watching this ticket

Pages