aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/journey/route.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actionpack/lib/action_dispatch/journey/route.rb')
-rw-r--r--actionpack/lib/action_dispatch/journey/route.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/actionpack/lib/action_dispatch/journey/route.rb b/actionpack/lib/action_dispatch/journey/route.rb
index f9e0e360c3..d44c3d31d7 100644
--- a/actionpack/lib/action_dispatch/journey/route.rb
+++ b/actionpack/lib/action_dispatch/journey/route.rb
@@ -8,6 +8,10 @@ module ActionDispatch
attr_accessor :precedence
+ def self.build(name, app, path, constraints, required_defaults, defaults)
+ new name, app, path, constraints, required_defaults, defaults
+ end
+
##
# +path+ is a path constraint.
# +constraints+ is a hash of constraints to be applied to this route.