Skip to content

Commit

Permalink
:on is removed from options before the Mapping is instantiated, so re…
Browse files Browse the repository at this point in the history
…move it from IGNORE_OPTIONS
  • Loading branch information
tenderlove committed Jun 3, 2014
1 parent fb9f01b commit 4bc441c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_dispatch/routing/mapper.rb
Expand Up @@ -60,7 +60,7 @@ def constraint_args(constraint, request)
end end


class Mapping #:nodoc: 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} ANCHOR_CHARACTERS_REGEX = %r{\A(\\A|\^)|(\\Z|\\z|\$)\Z}


attr_reader :scope, :options, :requirements, :conditions, :defaults attr_reader :scope, :options, :requirements, :conditions, :defaults
Expand Down

0 comments on commit 4bc441c

Please sign in to comment.