Module: ActionDispatch::Routing::RouteSet::WorkareaLocaleFixes

Defined in:
lib/workarea/testing/locale_routing_fixes.rb

Instance Method Summary collapse

Instance Method Details

#default_url_optionsObject



19
20
21
22
23
24
25
26
27
# File 'lib/workarea/testing/locale_routing_fixes.rb', line 19

def default_url_options
  result = super

  if !result.key?(:locale) && !result.key?('locale')
    result[:locale] = nil
  end

  result
end