Class: ActiveFedora::Reflection::RDFPropertyReflection
- Inherits:
-
AssociationReflection
- Object
- MacroReflection
- AssociationReflection
- ActiveFedora::Reflection::RDFPropertyReflection
- Defined in:
- lib/active_fedora/reflection.rb
Constant Summary
Constants inherited from AssociationReflection
AssociationReflection::INVALID_AUTOMATIC_INVERSE_OPTIONS, AssociationReflection::VALID_AUTOMATIC_INVERSE_MACROS
Instance Attribute Summary
Attributes inherited from MacroReflection
#active_fedora, #macro, #name, #options
Instance Method Summary collapse
Methods inherited from AssociationReflection
#association_class, #chain, #check_validity!, #check_validity_of_inverse!, #create_association, #foreign_key, #has_inverse?, #initialize, #inverse_of, #predicate, #predicate_for_solr, #solr_key, #validate?
Methods inherited from MacroReflection
#belongs_to?, #build_association, #class_name, #collection?, #has_and_belongs_to_many?, #has_many?, #initialize, #klass
Constructor Details
This class inherits a constructor from ActiveFedora::Reflection::AssociationReflection
Instance Method Details
#derive_class_name ⇒ Object
340 341 342 343 344 |
# File 'lib/active_fedora/reflection.rb', line 340 def derive_class_name class_name = name.to_s.sub(/_ids?$/, '').camelize class_name = class_name.singularize if collection? class_name end |
#derive_foreign_key ⇒ Object
336 337 338 |
# File 'lib/active_fedora/reflection.rb', line 336 def derive_foreign_key name end |