You need to call .new. You can just do `Type::http://Value.new `
-
-
Replying to @sgrif
I tried that, but Ruby can't find `Type` correctly. :(
3 replies 0 retweets 0 likes -
Replying to @ravinggenius
So yeah you might need to do `ActiveModel::Type::http://Value.new `
1 reply 0 retweets 0 likes -
Replying to @sgrif
No worries! One more: I started using attribute instead of attr_accessor because it would show the attribute when inspecting... 1/n
3 replies 0 retweets 0 likes -
Replying to @ravinggenius
And yes I sometimes call the attributes API "my horrendously over-engineered replacement for attr_accessor". XD
1 reply 0 retweets 0 likes -
Replying to @sgrif
But I want to see my virtual attributes when inspecting. That was the only reason I started using attribute instead of attr_accessor.
1 reply 0 retweets 0 likes -
-
-
Replying to @ravinggenius
Looking at the code it's written to only hit columns but I agree that they should show up in `inspect`. I will add for 5.1
1 reply 0 retweets 0 likes -
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.