Skip to content

Instantly share code, notes, and snippets.

@firedev
Created January 21, 2014 14:41

Revisions

  1. firedev created this gist Jan 21, 2014.
    7 changes: 7 additions & 0 deletions routing_helper.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,7 @@
    # spec/support/routing_helper.rb

    class ActionDispatch::Routing::RouteSet::NamedRouteCollection::UrlHelper
    def call(t, args)
    t.url_for(handle_positional_args(t, args, { locale: nil }.merge( @options ), @segment_keys))
    end
    end