Module: ActiveFedora::Core::ClassMethods
- Extended by:
- Deprecation
- Defined in:
- lib/active_fedora/core.rb
Instance Method Summary collapse
- #generated_association_methods ⇒ Object
-
#to_class_uri(attrs = nil) ⇒ Object
deprecated
Deprecated.
use to_rdf_representation instead
-
#to_rdf_representation ⇒ Object
Returns a suitable string representation for :has_model Override this method if you want to change how this class is represented in RDF.
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 = nil) ⇒ Object
Deprecated.
use to_rdf_representation instead
Returns a suitable string representation for :has_model
124 125 126 127 128 129 |
# File 'lib/active_fedora/core.rb', line 124 def to_class_uri(attrs = nil) if attrs Deprecation.warn ActiveFedora::Core, "to_class_uri no longer acceps an argument" end to_rdf_representation end |
#to_rdf_representation ⇒ Object
Returns a suitable string representation for :has_model Override this method if you want to change how this class is represented in RDF.
118 119 120 |
# File 'lib/active_fedora/core.rb', line 118 def to_rdf_representation name end |