Cleanup, remove unnecessary string-freeze
This commit is contained in:
parent
928adab801
commit
84e4465998
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue