class StackerBee::Middleware::RashifyResponse
Public Instance Methods
after(env)
click to toggle source
# File lib/stacker_bee/middleware/rashify_response.rb, line 6 def after(env) body = env.response.body env.response.body = case body when Hash then Rash.new(body) when Array then body.map { |item| Rash.new(item) } else body end end
content_types()
click to toggle source
# File lib/stacker_bee/middleware/rashify_response.rb, line 16 def content_types /javascript/ end