I somehow cannot find any place in the rails documentation about how to put some params into a named scope, f.e. something like this
scope :by_id, -> { where :id = id }
I somehow cannot find any place in the rails documentation about how to put some params into a named scope, f.e. something like this
scope :by_id, -> { where :id = id }