lib/riak/serializers.rb in riak-client-1.0.0.beta vs lib/riak/serializers.rb in riak-client-1.0.0
- old
+ new
@@ -20,10 +20,10 @@
end
private
def serializer_for(content_type)
- serializers.fetch(content_type) do
+ serializers.fetch(content_type[/^[^;\s]+/]) do
raise NotImplementedError.new(t('serializer_not_implemented', :content_type => content_type.inspect))
end
end
def serializers