Sha256: e16a0d8f369ab196dfa5b51d95f7f945fb8a682f843fab54149f24b392769945
Contents?: true
Size: 398 Bytes
Versions: 1
Compression:
Stored size: 398 Bytes
Contents
module Roar::Rails module Responder module VersionStrategy def prepare_model!(model) # 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 end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
roar-rails-0.0.12 | lib/roar/rails/rails3_0_strategy.rb |