diff options
author | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-03 02:50:31 +0300 |
---|---|---|
committer | Mehmet Emin İNAÇ <mehmetemininac@gmail.com> | 2015-05-03 02:50:31 +0300 |
commit | e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2 (patch) | |
tree | 983a34c9d1582a6949e68653cda491bed4a318e5 /actionview | |
parent | 76836ef7db8d0b1e40492c9a62f7c637718d813d (diff) | |
download | rails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.tar.gz rails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.tar.bz2 rails-e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2.zip |
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.rb | 2 |
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"> |