Modify for Rails 4 & ActiveRecord 4