Right now one can use the attributes API for custom types, but it doesn't work with store attributes. The following method would fix that:
store_accessor :preferences, :show_avatar, :boolean, default: true I've implemented a concern with this logic for a project I'm working on, and it works great. Do you think it would be a nice addition to Rails? -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To unsubscribe from this group and stop receiving emails from it, send an email to rubyonrails-core+unsubscr...@googlegroups.com. To post to this group, send email to rubyonrails-core@googlegroups.com. Visit this group at https://groups.google.com/group/rubyonrails-core. For more options, visit https://groups.google.com/d/optout.