Module: ActiveFedora::Core::ClassMethods
- Defined in:
- lib/active_fedora/core.rb
Constant Summary collapse
- SLASH =
'/'.freeze
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
109 110 111 112 113 114 115 |
# File 'lib/active_fedora/core.rb', line 109 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
120 121 122 |
# File 'lib/active_fedora/core.rb', line 120 def to_class_uri(attrs = {}) name end |