lib/yaks/runner.rb in yaks-0.8.1 vs lib/yaks/runner.rb in yaks-0.8.2

- old
+ new

@@ -39,11 +39,11 @@ def format_class Format.by_accept_header(env['HTTP_ACCEPT']) { Format.by_name(options.fetch(:format) { default_format }) } end - memoize :format_class + memoize :format_class, freezer: :noop def steps [[ :map, mapper ], [ :format, formatter ], [ :primitivize, primitivizer], @@ -59,11 +59,11 @@ memoize :mapper, freezer: :noop def formatter format_class.new(format_options_hash[format_name]) end - memoize :formatter + memoize :formatter, freezer: :noop def primitivizer proc do |input| if format_class.serializer.equal? :json primitivize.call(input) @@ -75,10 +75,10 @@ memoize :primitivizer def serializer serializers.fetch(format_class.serializer) end - memoize :serializer + memoize :serializer, freezer: :noop def hooks config.hooks + options.fetch(:hooks, []) end