Skip to content

Commit 2c4a24b

Browse files
chaadowDanielaVelasquez
authored andcommitted
Add missing alias for collection_checkboxes
Related to rails#52432
1 parent 6de869d commit 2c4a24b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

actionview/lib/action_view/helpers/form_options_helper.rb

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -782,6 +782,7 @@ def collection_radio_buttons(object, method, collection, value_method, text_meth
782782
def collection_checkboxes(object, method, collection, value_method, text_method, options = {}, html_options = {}, &block)
783783
Tags::CollectionCheckBoxes.new(object, method, self, collection, value_method, text_method, options, html_options).render(&block)
784784
end
785+
alias_method :collection_check_boxes, :collection_checkboxes
785786

786787
private
787788
def option_html_attributes(element)
@@ -908,6 +909,7 @@ def weekday_select(method, options = {}, html_options = {})
908909
def collection_checkboxes(method, collection, value_method, text_method, options = {}, html_options = {}, &block)
909910
@template.collection_checkboxes(@object_name, method, collection, value_method, text_method, objectify_options(options), @default_html_options.merge(html_options), &block)
910911
end
912+
alias_method :collection_check_boxes, :collection_checkboxes
911913

912914
# Wraps ActionView::Helpers::FormOptionsHelper#collection_radio_buttons for form builders:
913915
#

0 commit comments

Comments
 (0)