The UserDatingPreferences class is below, there are other attributes as well besides denominations. I just posted denominations here -
class UserDatingPreferences
include Virtus.model
attribute :denominations, Array[String], default: []
def self.dump(preferences)
preferences.to_hash
end
def self.load(preferences)
new(preferences)
end
end
It shows dating response like below, array of string and then another array in string
This is a question.
I am saving a hash in a postgres column using hstore. Then serializing the column in User model
serialize :dating_preferences, UserDatingPreferences
The UserDatingPreferences class is below, there are other attributes as well besides denominations. I just posted denominations here -
It shows dating response like below, array of string and then another array in string
After saving it like
The response looks like
Can it be made like below ?