Scopes not working anymore on has_many association proxy
Closed this issue · 1 comments
max-power commented
class User < MongoModel::Document
has_many :posts
end
class Post < MongoModel::Document
belongs_to :user
property :state, String
scope :published, where(:state => 'published')
end
Post.published
=> is working.
User.first.posts.published
=> throws an error: "undefined method 'published' for Array"
this was working till i did a bundle install
this morning.
spohlenz commented
Fixed in 0.2.5.