I’m looking at some ruby code in rails, which looks like:
user.jobs.order('created_at').not_closed.page(5)
In ActiveRecord::Base, I don’t see any any “not_closed”, “page”, or “order” methods in the API. What possible places can these methods originate?
orderis a core ActiveRecord method.not_closedmost likely, should be in the Job model (apps/models/job.rb).pagecould be in the Jobs model, or in an external gem/plugin (probably pagination related).