diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-02-16 18:55:36 -0500 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2018-02-16 18:55:36 -0500 |
commit | 2c89d1dda4077b2a99ddcced59bdd7a9a21b39a0 (patch) | |
tree | 6c2f4a854b21e1d12627cf6b208938a88ba648ad /actionpack/lib | |
parent | 0ea8e7db1a0659efe87ed2a85cb6ade69a8fddad (diff) | |
download | rails-2c89d1dda4077b2a99ddcced59bdd7a9a21b39a0.tar.gz rails-2c89d1dda4077b2a99ddcced59bdd7a9a21b39a0.tar.bz2 rails-2c89d1dda4077b2a99ddcced59bdd7a9a21b39a0.zip |
Write the code in a more natural way.
Diffstat (limited to 'actionpack/lib')
-rw-r--r-- | actionpack/lib/action_dispatch/journey/nodes/node.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/journey/nodes/node.rb b/actionpack/lib/action_dispatch/journey/nodes/node.rb index 6f12052713..32f632800c 100644 --- a/actionpack/lib/action_dispatch/journey/nodes/node.rb +++ b/actionpack/lib/action_dispatch/journey/nodes/node.rb @@ -32,7 +32,7 @@ module ActionDispatch end def name - -(left.tr "*:", "") + -left.tr("*:", "") end def type @@ -82,7 +82,7 @@ module ActionDispatch def initialize(left) super @regexp = DEFAULT_EXP - @name = -(left.tr "*:", "") + @name = -left.tr("*:", "") end def default_regexp? |