Remove unused function
This commit is contained in:
parent
f898cecb5c
commit
dbf0147d21
1 changed files with 1 additions and 5 deletions
|
@ -171,11 +171,7 @@ module ActiveSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
##
|
##
|
||||||
# set request readers to ask for a particular error format
|
# return request header to ask for a particular error format
|
||||||
def error_format(format)
|
|
||||||
@request.env["HTTP_X_ERROR_FORMAT"] = format
|
|
||||||
end
|
|
||||||
|
|
||||||
def error_format_header(f)
|
def error_format_header(f)
|
||||||
{ "X-Error-Format" => f }
|
{ "X-Error-Format" => f }
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue