Sha256: 8ec7e1362a3bc0b0e079f6c9a07eb9f37725291564d5b034193b99233fff9da0
Contents?: true
Size: 602 Bytes
Versions: 4
Compression:
Stored size: 602 Bytes
Contents
module Roar::Rails module Responder module VersionStrategy def prepare_model_for(format, model, *args) # rails <= 3.1 compatibility. #display gets called for empty responses # >= 3.2 fixes by calling #head, not #display for all empty bodies (PUT, DELETE) return model if respond_to?("empty_#{format}_resource") && model == empty_resource super end end end module TestCase module VersionStrategy def process_args(action, http_method, document="", params={}) [action, params, nil, nil, http_method] end end end end
Version data entries
4 entries across 4 versions & 1 rubygems