diff options
author | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-17 15:20:35 +0100 |
---|---|---|
committer | Kasper Timm Hansen <kaspth@gmail.com> | 2016-01-17 15:20:35 +0100 |
commit | 41ebb5564d0ea5511c48910863814627acf91f94 (patch) | |
tree | 12579a7fc455e0a0abe1dd74b452fc6d1ae058c9 /actionview/lib/action_view/template | |
parent | 5d1b7c3b441654e8008dcd303f5367883ec660a6 (diff) | |
download | rails-41ebb5564d0ea5511c48910863814627acf91f94.tar.gz rails-41ebb5564d0ea5511c48910863814627acf91f94.tar.bz2 rails-41ebb5564d0ea5511c48910863814627acf91f94.zip |
Make ref return the internal symbol.
We delegate to_sym to the internal symbol, which we've already called to_sym on in
initialize, so we don't need to do that.
We also know to_sym will never return a falsy value, so we'll never hit to_s.
Just return the symbolized symbol.
Diffstat (limited to 'actionview/lib/action_view/template')
-rw-r--r-- | actionview/lib/action_view/template/types.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/template/types.rb b/actionview/lib/action_view/template/types.rb index be45fcf742..bc805de348 100644 --- a/actionview/lib/action_view/template/types.rb +++ b/actionview/lib/action_view/template/types.rb @@ -32,7 +32,7 @@ module ActionView alias to_str to_s def ref - to_sym || to_s + @symbol end def ==(type) |