Using the Rails 5 Attributes API today, in Rails 4.2
Rails 5 is going to have a great new Attributes API, but you can use it already in Rails 4.2. If you’ve ever tried doing something as simple as overriding attribute accessors and found yourself chasing down and plugging endless edge cases, this post is for you.
Post a comment