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
114 115 116 117 118 119 120 |
# File 'lib/active_fedora/core.rb', line 114 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
131 132 133 134 135 136 |
# File 'lib/active_fedora/core.rb', line 131 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.
125 126 127 |
# File 'lib/active_fedora/core.rb', line 125 def to_rdf_representation name end |