Module: PlainModel::Querying::WithModel

Extended by:
ActiveSupport::Concern
Included in:
PlainModel::QueryBuilder
Defined in:
lib/plain_model/querying/with_model.rb

Instance Method Summary collapse

Instance Method Details

#_recordsObject



24
25
26
# File 'lib/plain_model/querying/with_model.rb', line 24

def _records
  model_class._records(values)
end

#dup_argsObject



20
21
22
# File 'lib/plain_model/querying/with_model.rb', line 20

def dup_args
  super + [model_class]
end

#initialize(model_class, *args) ⇒ Object



15
16
17
18
# File 'lib/plain_model/querying/with_model.rb', line 15

def initialize(model_class, *args)
  @model_class = model_class
  super(*args)
end