Sha256: b1584399d8ea6ce5af000ed5f41d6aca744f20b4a182f6ada5459ac852cf8624

Contents?: true

Size: 451 Bytes

Versions: 11

Compression:

Stored size: 451 Bytes

Contents

module Persistors
  # Implements the base persistor functionality.
  class Base
    def loaded
    end
    
    def changed(attribute_name)
    end
    
    def added(model)
    end
    
    # For removed, the default action is to call changed for it
    def removed(attribute_name)
      changed(attribute_name)
    end
    
    def event_added(event, scope_provider, first)
    end
    
    def event_removed(event, no_more_events)
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
volt-0.5.3 lib/volt/models/persistors/base.rb
volt-0.5.2 lib/volt/models/persistors/base.rb
volt-0.5.1 lib/volt/models/persistors/base.rb
volt-0.5.0 lib/volt/models/persistors/base.rb
volt-0.4.18 lib/volt/models/persistors/base.rb
volt-0.4.17 lib/volt/models/persistors/base.rb
volt-0.4.15 lib/volt/models/persistors/base.rb
volt-0.4.14 lib/volt/models/persistors/base.rb
volt-0.4.12 lib/volt/models/persistors/base.rb
volt-0.4.11 lib/volt/models/persistors/base.rb
volt-0.4.10 lib/volt/models/persistors/base.rb