Firstly thank you a lot for this great GEM! I have a question.
I need to have an attribute of type Hash (just usual Ruby Hash).
When I'm making
attribute :hash_field, :hash, default: -> { {} }
I got an error:
ArgumentError: Unknown type :hash
My current workaround is to define the type HashType in
app/types/hash_type.rb
and then register it in
config/initializers/types.rb.
May be I'm missing something? Is it for real that the Hash type is not supported out of the box?
Firstly thank you a lot for this great GEM! I have a question. I need to have an attribute of type Hash (just usual Ruby Hash). When I'm making
attribute :hash_field, :hash, default: -> { {} }
I got an error:ArgumentError: Unknown type :hash
My current workaround is to define the type HashType inapp/types/hash_type.rb
and then register it inconfig/initializers/types.rb.
May be I'm missing something? Is it for real that the Hash type is not supported out of the box?