Sha256: bde72a6de5b6b43a7886288476bf35cec6b4386e14254fc4f76e9704330f2c29

Contents?: true

Size: 607 Bytes

Versions: 5

Compression:

Stored size: 607 Bytes

Contents

module ContentState
  class Base
    include Reloadable

    class << self
      def instance
        nil
      end

      protected :new
    end

    def before_save(content)
      serialize_on(content)
      true
    end

    def published?
      false
    end

    def just_published?
      false
    end

    def draft?
      false
    end

    def publication_pending?
      false
    end

    def after_save(content)
      true
    end

    def post_trigger(content)
      true
    end

    def send_notifications(content)
      true
    end

    def send_pings(content)
      true
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
typo-3.99.0 app/models/content_state/base.rb
typo-3.99.3 app/models/content_state/base.rb
typo-3.99.2 app/models/content_state/base.rb
typo-3.99.1 app/models/content_state/base.rb
typo-3.99.4 app/models/content_state/base.rb