From 84e4465998981691991b0f91f999a6383617081d Mon Sep 17 00:00:00 2001 From: Andres Ehrenpreis Date: Thu, 11 Jan 2018 23:14:20 +0200 Subject: [PATCH] Cleanup, remove unnecessary string-freeze --- lib/simple_form/form_builder.rb | 4 ++-- lib/simple_form/inputs/collection_input.rb | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) 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