Skip to content

Commit 3768326

Browse files
committed
Merge pull request rails#10064 from thenickcox/fix_grammatical_error
Fix grammatical error on JS helper warning message [ci skip]
2 parents a7ef098 + 3475e0e commit 3768326

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

actionpack/lib/action_view/helpers/javascript_helper.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ def javascript_cdata_section(content) #:nodoc:
8181
# # => <input class="ok" onclick="alert('Hello world!');" type="button" value="Greeting" />
8282
#
8383
def button_to_function(name, function=nil, html_options={})
84-
message = "button_to_function is deprecated and will be removed from Rails 4.1. We recommend to use Unobtrusive JavaScript instead. " +
84+
message = "button_to_function is deprecated and will be removed from Rails 4.1. We recommend using Unobtrusive JavaScript instead. " +
8585
"See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrusive-javascript"
8686
ActiveSupport::Deprecation.warn message
8787

@@ -103,7 +103,7 @@ def button_to_function(name, function=nil, html_options={})
103103
# # => <a class="nav_link" href="#" onclick="alert('Hello world!'); return false;">Greeting</a>
104104
#
105105
def link_to_function(name, function, html_options={})
106-
message = "link_to_function is deprecated and will be removed from Rails 4.1. We recommend to use Unobtrusive JavaScript instead. " +
106+
message = "link_to_function is deprecated and will be removed from Rails 4.1. We recommend using Unobtrusive JavaScript instead. " +
107107
"See http://guides.rubyonrails.org/working_with_javascript_in_rails.html#unobtrusive-javascript"
108108
ActiveSupport::Deprecation.warn message
109109

0 commit comments

Comments
 (0)