Sha256: 6fe5a39bd9fe3b2e9b04d5d1726c8309d45a333bbeecfd56cba84ccd10edf5bd
Contents?: true
Size: 764 Bytes
Versions: 2
Compression:
Stored size: 764 Bytes
Contents
if Rails::VERSION::MAJOR > 4 || (Rails::VERSION::MAJOR == 4 && Rails::VERSION::MINOR >= 2) require 'action_controller/responder' else require 'action_controller' end require "garage/hypermedia_responder" require "garage/resource_casting_responder" require "garage/paginating_responder" require "garage/optional_response_body_responder" class Garage::AppResponder < ActionController::Responder # like Rack middleware, responders are applied outside in, bottom to the top include Garage::HypermediaResponder include Garage::ResourceCastingResponder include Garage::PaginatingResponder include Garage::OptionalResponseBodyResponder # in case someone tries to do Object#to_msgpack undef_method(:to_msgpack) if method_defined?(:to_msgpack) end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
the_garage-2.0.1 | lib/garage/app_responder.rb |
the_garage-2.0.0 | lib/garage/app_responder.rb |