This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
unless Rails::VERSION::STRING == "4.0.0" | |
raise "Rails version changed. Revisit overrides and make sure they're still good!" | |
end | |
# If routes are prefixed with a :locale, you can no longer do | |
# `foo_path(foo)` but only `foo_path(id: foo)`, since it expects | |
# the first of any non-hash arguments to be the locale. | |
# This monkeypatch fixes that by never allowing locale as the first | |
# non-hash argument |