fixing issue #69 (ActiveRecord scopes are not chainable)
fixed deprecation warning with Rails 4 (Relation#update_all with conditions is deprecated)