Skip to content

Instantly share code, notes, and snippets.

View mpxc8102's full-sized avatar

Matt mpxc8102

  • Toronto, Canada
View GitHub Profile
@mpxc8102
mpxc8102 / route_translator.rb
Last active August 29, 2015 14:19
patching route_translator
# copy and paste these methods over the ones that are defined in route_translator-4.0.0/lib/route_translator/translator.rb
def self.translations_for(app, conditions, requirements, defaults, route_name, anchor, route_set, &block)
add_untranslated_helpers_to_controllers_and_views(route_name, route_set.named_routes)
available_locales.each do |locale|
new_conditions = conditions.dup
# LOOK HERE!!!!!!!!!!!
# this begin block is the only change i made to this method