Class: Granite::Form::Model::Associations::ReferencesAny

Inherits:
Base
  • Object
show all
Defined in:
lib/granite/form/model/associations/references_any.rb

Direct Known Subclasses

ReferencesMany, ReferencesOne

Instance Attribute Summary

Attributes inherited from Base

#owner, #reflection

Instance Method Summary collapse

Methods inherited from Base

#callback, #evar_loaded?, #initialize, #inspect, #loaded!, #loaded?, #reload, #reset, #target, #transaction

Constructor Details

This class inherits a constructor from Granite::Form::Model::Associations::Base

Instance Method Details

#scope(source = read_source) ⇒ Object



6
7
8
# File 'lib/granite/form/model/associations/references_any.rb', line 6

def scope(source = read_source)
  reflection.persistence_adapter.scope(owner, source)
end