Skip to content

Commit

Permalink
handle dois without media in serializer. #168
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Fenner committed Dec 29, 2018
1 parent f12d0f6 commit 46a9bac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/serializers/doi_serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ class DoiSerializer
attributes :prefix, :suffix, if: Proc.new { |object, params| params && params[:detail] }

belongs_to :client, record_type: :clients
has_many :media
has_many :media, if: Proc.new { |doi| doi.media_ids }

attribute :xml, if: Proc.new { |object, params| params && params[:detail] } do |object|
object.xml_encoded
Expand Down
2 changes: 1 addition & 1 deletion config/initializers/_version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Lupo
class Application
VERSION = "2.1.6"
VERSION = "2.1.7"
end
end

0 comments on commit 46a9bac

Please sign in to comment.