0
0
zero-blog/controller/method_not_allowed.rb
2013-10-20 22:04:01 +02:00

11 lines
251 B
Ruby

module Routes
class MethodNotAllowed
def self.call(session)
session.response.status = 405
session.response.content_type = 'text/html'
session.response.body = 'Method not supported by this resource!'
nil
end
end
end