lib/yaks/runner.rb in yaks-0.6.0.alpha.1 vs lib/yaks/runner.rb in yaks-0.6.0

- old
+ new

@@ -54,11 +54,11 @@ end memoize :formatter def primitivizer ->(input) do - if format_class.serializer == :json + if format_class.serializer.equal? :json primitivize.call(input) else input end end @@ -71,12 +71,10 @@ options.fetch(:format) { default_format } end memoize :format_name def serializer - serializers.fetch(format_class.serializer) do - policy.serializer_for_format(format_class) - end + serializers.fetch(format_class.serializer) end memoize :serializer def insert_hooks(steps) hooks.inject(steps) do |steps, (type, target_step, name, hook)|