@sgrif Where can I find a list of symbols to pass to ActiveRecord::Base.attribute to specify the type? Thanks! #confused #documentation
It was always meant to be public API eventually. Implementation wasn't finished in 4.2. Too many pitfalls to make public
-
-
So can I use :value (or Type::Value) to opt out of typecasting? My attributes may be different types, but don't get persisted to db.
-
Yes `Type::Value` is the identity type. (And I recommend always using the class names never the symbol form personally)
- 12 more replies
New conversation -
-
-
In Rails 4.2 I could do attribute(:foo, ActiveRecord::Type::http://Value.new ). 1/n
-
It would show the attribute when inspecting the model in the console. 2/n
- 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.