aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_view/helpers
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2013-04-02 20:59:13 -0700
committerSteve Klabnik <steve@steveklabnik.com>2013-04-02 20:59:13 -0700
commit37683266d86db2b7c39cb32a1e39e3698f6a93a8 (patch)
treeee8934d3e317653f29b376cce27f256d907fa481 /actionpack/lib/action_view/helpers
parenta7ef0982d44c7bdac5e41a1a97afb8eaa537d6db (diff)
parent3475e0ed2402009a72c8e1a4dbf0632c24679fdc (diff)
downloadrails-37683266d86db2b7c39cb32a1e39e3698f6a93a8.tar.gz
rails-37683266d86db2b7c39cb32a1e39e3698f6a93a8.tar.bz2
rails-37683266d86db2b7c39cb32a1e39e3698f6a93a8.zip
Merge pull request #10064 from thenickcox/fix_grammatical_error
Fix grammatical error on JS helper warning message [ci skip]
Diffstat (limited to 'actionpack/lib/action_view/helpers')
-rw-r--r--actionpack/lib/action_view/helpers/javascript_helper.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_view/helpers/javascript_helper.rb b/actionpack/lib/action_view/helpers/javascript_helper.rb
index f7e15d0913..edff98ddaa 100644
--- a/actionpack/lib/action_view/helpers/javascript_helper.rb
+++ b/actionpack/lib/action_view/helpers/javascript_helper.rb
@@ -81,7 +81,7 @@ module ActionView
# # => <input class="ok" onclick="alert('Hello world!');" type="button" value="Greeting" />
#
def button_to_function(name, function=nil, html_options={})
- message = "button_to_function is deprecated and will be removed from Rails 4.1. We recommend to use Unobtrusive JavaScript instead. " +
+ message = "button_to_function is deprecated and will be removed from Rails 4.1. We recommend using Unobtrusive JavaScript instead. " +
"See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrusive-javascript"
ActiveSupport::Deprecation.warn message
@@ -103,7 +103,7 @@ module ActionView
# # => <a class="nav_link" href="#" onclick="alert('Hello world!'); return false;">Greeting</a>
#
def link_to_function(name, function, html_options={})
- message = "link_to_function is deprecated and will be removed from Rails 4.1. We recommend to use Unobtrusive JavaScript instead. " +
+ message = "link_to_function is deprecated and will be removed from Rails 4.1. We recommend using Unobtrusive JavaScript instead. " +
"See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrusive-javascript"
ActiveSupport::Deprecation.warn message