lib/active_remote/dirty.rb in active_remote-1.8.1 vs lib/active_remote/dirty.rb in active_remote-2.0.0.rc1

- old
+ new

@@ -2,15 +2,15 @@ # Overrides persistence methods, providing support for dirty tracking. # module ActiveRemote module Dirty - def self.included(klass) - klass.class_eval do - include ActiveModel::Dirty + extend ActiveSupport::Concern - attr_accessor :_active_remote_track_changes - end + included do + include ActiveModel::Dirty + + attr_accessor :_active_remote_track_changes end def disable_dirty_tracking @_active_remote_track_changes = false end