Sha256: 814c407ddf780dcb95f5c40582a5f5b75b53c914bba4b69255be6a79a3b09b2f
Contents?: true
Size: 277 Bytes
Versions: 137
Compression:
Stored size: 277 Bytes
Contents
class ApplicationController < ActionController::Base protect_from_forgery before_filter :default_format_json protected def default_format_json if(request.headers["HTTP_ACCEPT"].nil? && params[:format].nil?) request.format = "json" end end end
Version data entries
137 entries across 77 versions & 2 rubygems