Class: ActiveFedora::Filter::Reflection
- Inherits:
-
Reflection::AssociationReflection
- Object
- Reflection::AssociationReflection
- ActiveFedora::Filter::Reflection
- Defined in:
- lib/active_fedora/filter/reflection.rb
Instance Method Summary collapse
- #association_class ⇒ Object
- #collection? ⇒ Boolean
- #extending_from ⇒ Object
-
#klass ⇒ Object
delegates to extending_from.
Instance Method Details
#association_class ⇒ Object
3 4 5 |
# File 'lib/active_fedora/filter/reflection.rb', line 3 def association_class Association end |
#collection? ⇒ Boolean
16 17 18 |
# File 'lib/active_fedora/filter/reflection.rb', line 16 def collection? true end |
#extending_from ⇒ Object
12 13 14 |
# File 'lib/active_fedora/filter/reflection.rb', line 12 def extending_from @extending_from ||= active_fedora.reflect_on_association(.fetch(:extending_from)) end |
#klass ⇒ Object
delegates to extending_from
8 9 10 |
# File 'lib/active_fedora/filter/reflection.rb', line 8 def klass extending_from.klass end |