Project

General

Profile

« Previous | Next » 

Revision b8fa2e29

Added by Ondřej Pražák over 8 years ago

Fixes #11437 - do not modify frozen arrays in select_f helper

View differences:

app/helpers/layout_helper.rb
end
def select_f(f, attr, array, id, method, select_options = {}, html_options = {})
array = array.to_a
array = array.to_a.dup
disable_button = select_options.delete(:disable_button)
include_blank = select_options.delete(:include_blank)
disable_button_enabled = select_options.delete(:disable_button_enabled)

Also available in: Unified diff