1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Remove redundant method

This commit is contained in:
Andrew White 2013-02-28 03:37:52 +00:00
parent 17cff2c1b8
commit cf278a6eff

View file

@ -113,14 +113,6 @@ module ActionDispatch
@options.merge!(default_controller_and_action)
end
def normalize_format!
if options[:format] == true
options[:format] = /.+/
elsif options[:format] == false
options.delete(:format)
end
end
def normalize_requirements!
constraints.each do |key, requirement|
next unless segment_keys.include?(key) || key == :controller