update to Ruby 2.2 and Rails 4.2
use ActiveModel
use ActiveModel