Maybe for Rails 6 we'll get a sane way to configure dynamic default values for model attributes.
-
-
Replying to @searls1 reply 0 retweets 1 like
-
Replying to @searls
@searls @derekprior http://edgeapi.rubyonrails.org/classes/ActiveRecord/Attributes/ClassMethods.html#method-i-attribute …
If that's not your cup of tea, I'd just override `initialize`
2:46 PM - 16 Jun 2015
0 replies
0 retweets
1 like
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.