public
Created

interpret_status in rails3

  • Download Gist
interpret_status.rails3.rb
Ruby
1 2 3
def interpret_status(status)
Rack::Utils::HTTP_STATUS_CODES[status.to_i] || status.to_s
end

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.