Exception: MassiveRecord::ORM::Relations::Proxy::ReferencesMany::UnsupportedFinderOption

Inherits:
MassiveRecordError
  • Object
show all
Defined in:
lib/massive_record/orm/relations/proxy/references_many.rb

Overview

Raised when we are in a references many relationship where the target’s foreign keys are persisted in the owner and you try to do a person.cars.all(:limit => 1, :offset => “something”) and some of these options are unsupported. The reason for these being unsupported is that we have to implement offset and limitiation in pure Ruby working on that car_ids array in the person. Its nothing close to impossible; it just has not been done yet.

Constant Summary collapse

OPTIONS =
%w(limit offset starts_with)