Sha256: 0b0db8df4931375700b54f08e1e3e2160e5f34814291942464ad13b4cf030548

Contents?: true

Size: 519 Bytes

Versions: 1

Compression:

Stored size: 519 Bytes

Contents

module Volt
  module Persistors
    # Implements the base persistor functionality.
    class Base
      def loaded(initial_state=nil)
      end

      def changed(attribute_name)
      end

      def added(model, index)
      end

      # For removed, the default action is to call changed for it
      def removed(attribute_name)
        changed(attribute_name)
      end

      def event_added(event, first, first_for_event)
      end

      def event_removed(event, last, last_for_event)
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
volt-0.8.15 lib/volt/models/persistors/base.rb