Just attribute assignment. Stolen 100% from ActiveModel.
Add this line to your application's Gemfile:
gem 'assignment'
And then execute:
$ bundle
Or install it yourself as:
$ gem install assignment
The gem is available as open source under the terms of the MIT License.