aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGeorge Millo <georgejulianmillo@gmail.com>2015-01-06 00:10:56 +0000
committerGeorge Millo <georgejulianmillo@gmail.com>2015-01-06 00:10:56 +0000
commitfc933fd4abd7e2b4709e7ec17fc15a1e17266179 (patch)
tree4136a9370be7a1fc093f8114b6d4240493a05295
parente50064c130f8b6465a78928e38588196515ccf27 (diff)
downloadrails-fc933fd4abd7e2b4709e7ec17fc15a1e17266179.tar.gz
rails-fc933fd4abd7e2b4709e7ec17fc15a1e17266179.tar.bz2
rails-fc933fd4abd7e2b4709e7ec17fc15a1e17266179.zip
removing unecessary parameter in private method
'_singularize' only ever gets called with one argument
-rw-r--r--activemodel/lib/active_model/naming.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/naming.rb b/activemodel/lib/active_model/naming.rb
index 1819d2403f..ada1f9a4f3 100644
--- a/activemodel/lib/active_model/naming.rb
+++ b/activemodel/lib/active_model/naming.rb
@@ -189,8 +189,8 @@ module ActiveModel
private
- def _singularize(string, replacement='_')
- ActiveSupport::Inflector.underscore(string).tr('/', replacement)
+ def _singularize(string)
+ ActiveSupport::Inflector.underscore(string).tr('/', '_')
end
end