aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-03 18:20:46 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-05-03 18:20:46 -0300
commit03b0911cff6545c84b83c1adca0e66822c336b2e (patch)
tree3f8e6081aa0e14b902a76116c71f5ef9fa86041b /actionview
parent29765e7b0264e3b0fb4eaa55a2139231d6b1aaa6 (diff)
parente4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2 (diff)
downloadrails-03b0911cff6545c84b83c1adca0e66822c336b2e.tar.gz
rails-03b0911cff6545c84b83c1adca0e66822c336b2e.tar.bz2
rails-03b0911cff6545c84b83c1adca0e66822c336b2e.zip
Merge pull request #19980 from vngrs/use_new_lambda_syntax_in_doc
Use ruby 1.9 lambda syntax in documentations [ci skip]
Diffstat (limited to 'actionview')
-rw-r--r--actionview/lib/action_view/helpers/form_options_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/form_options_helper.rb b/actionview/lib/action_view/helpers/form_options_helper.rb
index 8a5928477f..38fee3b314 100644
--- a/actionview/lib/action_view/helpers/form_options_helper.rb
+++ b/actionview/lib/action_view/helpers/form_options_helper.rb
@@ -80,7 +80,7 @@ module ActionView
#
# When used with the <tt>collection_select</tt> helper, <tt>:disabled</tt> can also be a Proc that identifies those options that should be disabled.
#
- # collection_select(:post, :category_id, Category.all, :id, :name, {disabled: lambda{|category| category.archived? }})
+ # collection_select(:post, :category_id, Category.all, :id, :name, {disabled: -> (category) { category.archived? }})
#
# If the categories "2008 stuff" and "Christmas" return true when the method <tt>archived?</tt> is called, this would return:
# <select name="post[category_id]" id="post_category_id">