Module: ActiveFedora::Core::ClassMethods
- Defined in:
- lib/active_fedora/core.rb
Instance Method Summary collapse
- #generated_association_methods ⇒ Object
-
#to_class_uri(_attrs = {}) ⇒ Object
Returns a suitable uri object for :has_model Should reverse Model#from_class_uri TODO this is a poorly named method.
Instance Method Details
#generated_association_methods ⇒ Object
107 108 109 110 111 112 113 |
# File 'lib/active_fedora/core.rb', line 107 def generated_association_methods @generated_association_methods ||= begin mod = const_set(:GeneratedAssociationMethods, Module.new) include mod mod end end |
#to_class_uri(_attrs = {}) ⇒ Object
Returns a suitable uri object for :has_model Should reverse Model#from_class_uri TODO this is a poorly named method
118 119 120 |
# File 'lib/active_fedora/core.rb', line 118 def to_class_uri(_attrs = {}) name end |