Working on improving documentation in that area but https://github.com/rails/rails/blob/master/activemodel/lib/active_model/type.rb#L46-L57 … are the primitives
And yes I sometimes call the attributes API "my horrendously over-engineered replacement for attr_accessor". XD
-
-
But I want to see my virtual attributes when inspecting. That was the only reason I started using attribute instead of attr_accessor.
-
Yes, it's what you should be doing
- 4 more replies
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.