Sha256: b3d9646e5455665b43b07ca46774a5d64d3b97e52c4c4d43553683ef79a7ba0d

Contents?: true

Size: 702 Bytes

Versions: 20

Compression:

Stored size: 702 Bytes

Contents

if Rails.gem_version >= Gem::Version.new('4.2.0')
  require 'responders'
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

20 entries across 20 versions & 1 rubygems

Version Path
the_garage-2.8.2 lib/garage/app_responder.rb
the_garage-2.8.1 lib/garage/app_responder.rb
the_garage-2.8.0 lib/garage/app_responder.rb
the_garage-2.7.0 lib/garage/app_responder.rb
the_garage-2.6.1 lib/garage/app_responder.rb
the_garage-2.6.0 lib/garage/app_responder.rb
the_garage-2.5.0 lib/garage/app_responder.rb
the_garage-2.4.4 lib/garage/app_responder.rb
the_garage-2.4.3 lib/garage/app_responder.rb
the_garage-2.4.2 lib/garage/app_responder.rb
the_garage-2.4.1 lib/garage/app_responder.rb
the_garage-2.4.0 lib/garage/app_responder.rb
the_garage-2.3.3 lib/garage/app_responder.rb
the_garage-2.3.2 lib/garage/app_responder.rb
the_garage-2.3.1 lib/garage/app_responder.rb
the_garage-2.3.0 lib/garage/app_responder.rb
the_garage-2.2.0 lib/garage/app_responder.rb
the_garage-2.1.0 lib/garage/app_responder.rb
the_garage-2.0.3 lib/garage/app_responder.rb
the_garage-2.0.2 lib/garage/app_responder.rb