lib/grover/middleware.rb in grover-1.1.1 vs lib/grover/middleware.rb in grover-1.1.2
- old
+ new
@@ -115,10 +115,10 @@
cookies = Rack::Utils.parse_cookies(env).map do |name, value|
{ name: name, value: Rack::Utils.escape(value), domain: env['HTTP_HOST'] }
end
options[:cookies] = cookies if cookies.any?
- Grover.new(body, options)
+ Grover.new(body, **options)
end
def add_cover_content(grover)
pdf = CombinePDF.parse grover.to_pdf
pdf >> fetch_cover_pdf(grover.front_cover_path) if grover.show_front_cover?