Aggregate class can not be defined in ruby 1.9.3-p125
mattiassvedhem opened this issue · 2 comments
mattiassvedhem commented
So I'm getting the following error, I guess something goes wrong in Aggregates.define_klass
but I can't figure out what it is.
Any ideas?
Thanks
/Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/1.9.1/rake/ext/module.rb:36:in `const_missing': uninitialized constant AdAggregates (NameError)
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/inflector/methods.rb:229:in `block in constantize'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/inflector/methods.rb:228:in `each'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/inflector/methods.rb:228:in `constantize'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/core_ext/string/inflections.rb:54:in `constantize'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/trackoid-0.3.7/lib/trackoid/aggregates.rb:111:in `define_aggregate_model'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/trackoid-0.3.7/lib/trackoid/aggregates.rb:64:in `aggregate'
from /Volumes/Produktioner/sites/rails/kyparn/lib/mongoid/view_tracking.rb:30:in `block in <module:ViewTracking>'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/concern.rb:119:in `class_eval'
from /Users/speggey/.rbenv/versions/1.9.3-p125/lib/ruby/gems/1.9.1/gems/activesupport-3.2.2/lib/active_support/concern.rb:119:in `append_features'
from /Volumes/Produktioner/sites/rails/kyparn/app/models/ad.rb:2:in `include'
twoixter commented
Seems that your fork worked flawlessly, thanks! At least in Ruby 1.9.3.
Test version 0.3.8 and see how it works.
mattiassvedhem commented
Cool, I'll try it out!