[Fix] Added compatibility with new Rails 4.2 APIs

Using the publicly-available private method `ActiveRecord::Dirty#clear_attribute_changes` (see https://github.com/rails/rails/pull/17545) will solve the compatibility issues with Rails 4.2. 

This will fix issue #38 too.