Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When we use `require`, Ruby makes sure that we only load the file once, but since here we're explictly pushing things onto the load path we need to do that check ourself. Found using bin/rspec --warnings, which showed the following: /Users/dgmstuart/dev/swing-out-london/config/locales/en.rb:3: warning: method redefined; discarding old ordinal_day /Users/dgmstuart/dev/swing-out-london/config/locales/en.rb:3: warning: previous definition of ordinal_day was here /Users/dgmstuart/dev/swing-out-london/config/locales/en.rb:7: warning: method redefined; discarding old human_date /Users/dgmstuart/dev/swing-out-london/config/locales/en.rb:7: warning: previous definition of human_date was here ...since these methods are defined in the locale file which is being loaded here.
- Loading branch information