Cleanup, remove unnecessary string-freeze

This commit is contained in:
Andres Ehrenpreis 2018-01-11 23:14:20 +02:00
parent 928adab801
commit 84e4465998
2 changed files with 3 additions and 3 deletions

View File

@ -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

View File

@ -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