# File lib/padrino-contrib/auto_locale.rb, line 81 def self.padrino_route_added(route, verb, path, args, options, block) ## # TODO: Regex original_path needs to be served as well. # return unless route.original_path.is_a?(String) excluded_paths = block.binding.eval('settings').locale_exclusive_paths return if AutoLocale.excluded_path?(route.original_path, excluded_paths) route.path = "/:lang#{route.original_path}" unless route.original_path =~ /:lang/ end