diff --git a/lib/simple_form/form_builder.rb b/lib/simple_form/form_builder.rb index ce942172..19d1e31d 100644 --- a/lib/simple_form/form_builder.rb +++ b/lib/simple_form/form_builder.rb @@ -11,9 +11,9 @@ module SimpleForm ACTIONS = { 'create' => 'new', 'update' => 'edit' - }.freeze + } - ATTRIBUTE_COMPONENTS = %i[html5 min_max maxlength minlength placeholder pattern readonly].freeze + ATTRIBUTE_COMPONENTS = %i[html5 min_max maxlength minlength placeholder pattern readonly] extend MapType include SimpleForm::Inputs diff --git a/lib/simple_form/inputs/collection_input.rb b/lib/simple_form/inputs/collection_input.rb index 5f5c066f..ee300ad0 100644 --- a/lib/simple_form/inputs/collection_input.rb +++ b/lib/simple_form/inputs/collection_input.rb @@ -2,7 +2,7 @@ module SimpleForm module Inputs class CollectionInput < Base - BASIC_OBJECT_CLASSES = [String, Integer, Float, NilClass, Symbol, TrueClass, FalseClass].freeze + BASIC_OBJECT_CLASSES = [String, Integer, Float, NilClass, Symbol, TrueClass, FalseClass] BASIC_OBJECT_CLASSES.push(Fixnum, Bignum) unless 1.class == Integer # Default boolean collection for use with selects/radios when no