aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/lib/action_view/helpers
diff options
context:
space:
mode:
authorMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-03 02:50:31 +0300
committerMehmet Emin İNAÇ <mehmetemininac@gmail.com>2015-05-03 02:50:31 +0300
commite4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2 (patch)
tree983a34c9d1582a6949e68653cda491bed4a318e5 /actionview/lib/action_view/helpers
parent76836ef7db8d0b1e40492c9a62f7c637718d813d (diff)
downloadrails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.tar.gz
rails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.tar.bz2
rails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.zip
Use ruby 1.9 lambda syntax in documentations [ci skip]
Diffstat (limited to 'actionview/lib/action_view/helpers')
-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">