diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-03 18:20:46 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-05-03 18:20:46 -0300 |
commit | 03b0911cff6545c84b83c1adca0e66822c336b2e (patch) | |
tree | 3f8e6081aa0e14b902a76116c71f5ef9fa86041b /actionview | |
parent | 29765e7b0264e3b0fb4eaa55a2139231d6b1aaa6 (diff) | |
parent | e4dd700b5d29ed19c3b5a66a5a968ebfc94ce1d2 (diff) | |
download | rails-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.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"> |