aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-05 17:26:04 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2016-03-05 17:26:04 -0300
commitddf4c953ae8d10489e0bfd6008bd76395f6e1267 (patch)
treebc35ceca938f59287a14d2d610e65235f62b0129 /actionview/lib
parent1d02fb6e376c6f7224a5534d574e63dd9708cdd2 (diff)
downloadrails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.gz
rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.tar.bz2
rails-ddf4c953ae8d10489e0bfd6008bd76395f6e1267.zip
Revert "Merge pull request #22764 from stevenspiel/titleize_model_name_for_default_submit_button_value"
This reverts commit 4158974c60d817c9bc1e2aecb342161295f2ac0d, reversing changes made to 3d590add45b7ff1de972d99b076cb504d5208935. Reason: This break i18n in some languages. See https://github.com/rails/rails/issues/791#issuecomment-192724640
Diffstat (limited to 'actionview/lib')
-rw-r--r--actionview/lib/action_view/helpers/form_helper.rb2
1 files changed, 0 insertions, 2 deletions
diff --git a/actionview/lib/action_view/helpers/form_helper.rb b/actionview/lib/action_view/helpers/form_helper.rb
index c1015ffe89..e91b3443c5 100644
--- a/actionview/lib/action_view/helpers/form_helper.rb
+++ b/actionview/lib/action_view/helpers/form_helper.rb
@@ -1922,8 +1922,6 @@ module ActionView
@object_name.to_s.humanize
end
- model = model.downcase
-
defaults = []
defaults << :"helpers.submit.#{object_name}.#{key}"
defaults << :"helpers.submit.#{key}"