Sha256: 27f687cfa9fe6e605d2c0478146a8e5dcadc37de74f9ca53e92e8104a134dca9

Contents?: true

Size: 215 Bytes

Versions: 2

Compression:

Stored size: 215 Bytes

Contents

module Raisin
  module ApiFormat
    def formats
      @env["action_dispatch.request.formats"] ||= @env['raisin.request.formats'] || super
    end
  end
end

ActionDispatch::Request.send(:include, Raisin::ApiFormat)

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
raisin-0.0.2 lib/raisin/rails/request.rb
raisin-0.0.1 lib/raisin/rails/request.rb