You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All ByStar methods (except oldest, newest, previous, next) return ActiveRecord::Relation and/or Mongoid::Criteria objects, which can be daisy-chained with other scopes/finder methods:
Scoping the Find
All ByStar methods (except oldest, newest, previous, next) return ActiveRecord::Relation and/or Mongoid::Criteria objects, which can be daisy-chained with other scopes/finder methods:
Post.by_month.your_scope
Post.by_month(1).include(:tags).where("tags.name" => "ruby")
I was wondering how to do the reverse
Tag.include(:posts). # WHERE Post.by_month('May')
The text was updated successfully, but these errors were encountered: