Browse files

:on is removed from options before the Mapping is instantiated, so re…

…move it from IGNORE_OPTIONS
  • Loading branch information...
tenderlove committed May 30, 2014
1 parent fb9f01b commit 4bc441c6f87c06426017a914347f0076bc70cbb5
Showing with 1 addition and 1 deletion.
  1. +1 −1 actionpack/lib/action_dispatch/routing/mapper.rb
@@ -60,7 +60,7 @@ def constraint_args(constraint, request)
class Mapping #:nodoc:
- IGNORE_OPTIONS = [:on, :constraints, :defaults, :only, :except, :shallow, :shallow_path, :shallow_prefix]
+ IGNORE_OPTIONS = [:constraints, :defaults, :only, :except, :shallow, :shallow_path, :shallow_prefix]
ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}
attr_reader :scope, :options, :requirements, :conditions, :defaults

0 comments on commit 4bc441c

Please sign in to comment.