sorry, I wasn't very clear. I mean for a custom type, which is backed by jsonb. So `attribute :foo, Bar::http://Type.new `.
-
-
Replying to @stevenharman @sgrif
does that make sense? I see the `AbstractJson` Type, which has a PG implementation. Would `Bar::Type` inherit from that?
1 reply 0 retweets 0 likes -
Replying to @stevenharman
No, it's not public API. You can inherit from the existing classes if you want, but it may break between versions
1 reply 0 retweets 0 likes -
Replying to @sgrif
is none of it is considered public? Or if some, how much? I'm guessing only the `attribute :foo` w/built-in types? No custom types?
2 replies 0 retweets 0 likes -
Replying to @stevenharman
No, the attributes API is public. The types in `ActiveRecord::Type` are also public (not `Internal` though)
2 replies 0 retweets 0 likes -
Replying to @sgrif
Any idea if this might come to the public API? Trying to figure out where to extend from (Value, AbstractJson, etc) in the mean time.
2 replies 0 retweets 0 likes -
-
Replying to @sgrif
Yeah, I realize `Internal` won't. But curious if the concept of a JSON Type will. e.g., in future I'd inherit from `AM::Type::JSONB`.
2 replies 0 retweets 0 likes -
Replying to @stevenharman
Unlikely to be, no. It's a database specific concept.
1 reply 0 retweets 0 likes -
Replying to @sgrif
OK, makes sense to not be `AM::Type`, b/c lowest common denominator. But would be nice to have a public API to rely on for PG stuff.
2 replies 0 retweets 0 likes
Database specific types are still changing too frequently for me to be comfortable with making that concrete public API
-
-
Replying to @sgrif
Make sense. Thanks again for all of the help and your tireless efforts!
0 replies 0 retweets 0 likesThanks. Twitter will use this to make your timeline better. UndoUndo
-
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.