Sha256: 3ec13ce61f933deb830edc68cfea69a5782c513cccd877bf5520e267113cf25e

Contents?: true

Size: 513 Bytes

Versions: 32

Compression:

Stored size: 513 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

      feature_manifest_name "pages"

      # 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

32 entries across 32 versions & 2 rubygems

Version Path
decidim-pages-0.6.5 app/models/decidim/pages/page.rb
decidim-0.6.5 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.4 app/models/decidim/pages/page.rb
decidim-0.6.4 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.3 app/models/decidim/pages/page.rb
decidim-0.6.3 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.2 app/models/decidim/pages/page.rb
decidim-0.6.2 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.1 app/models/decidim/pages/page.rb
decidim-0.6.1 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.0 app/models/decidim/pages/page.rb
decidim-0.6.0 decidim-pages/app/models/decidim/pages/page.rb