Module: RestPack::Serializer::Attributes
- Extended by:
- ActiveSupport::Concern
- Included in:
- RestPack::Serializer
- Defined in:
- lib/restpack_serializer/serializable/attributes.rb
Defined Under Namespace
Modules: ClassMethods
Instance Method Summary collapse
Instance Method Details
#default_href ⇒ Object
4 5 6 |
# File 'lib/restpack_serializer/serializable/attributes.rb', line 4 def default_href "#{self.class.href_prefix}/#{self.class.key}/#{@model.to_param}" end |