Sha256: 0cc106cfedbace2b22b881f610971ca5b100965aa0b75afa831ed0d222c4640f

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Pages
    # The data store for a Page in the Decidim::Pages component. It stores a
    # title, description and any other useful information to render a custom page.
    class Page < Pages::ApplicationRecord
      include Decidim::Resourceable
      include Decidim::HasFeature
      include Decidim::Traceable
      include Decidim::Loggable

      feature_manifest_name "pages"

      def self.log_presenter_class_for(_log)
        Decidim::Pages::AdminLog::PagePresenter
      end

      # Public: Pages doesn't have title so we assign the feature one to it.
      def title
        feature.name
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
decidim-pages-0.10.1 app/models/decidim/pages/page.rb
decidim-pages-0.10.0 app/models/decidim/pages/page.rb