lib/restpack_serializer/serializable/attributes.rb in restpack_serializer-0.2.13 vs lib/restpack_serializer/serializable/attributes.rb in restpack_serializer-0.2.14

- old
+ new

@@ -1,9 +1,9 @@ module RestPack::Serializer::Attributes extend ActiveSupport::Concern def default_href - "#{RestPack::Serializer.config.href_prefix}/#{@model.class.table_name}/#{@model.id}.json" + "#{RestPack::Serializer.config.href_prefix}/#{self.class.key}/#{@model.id}.json" end module ClassMethods def serializable_attributes @serializable_attributes