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.9.3 app/models/decidim/pages/page.rb
decidim-pages-0.9.2 app/models/decidim/pages/page.rb
decidim-pages-0.9.1 app/models/decidim/pages/page.rb
decidim-pages-0.9.0 app/models/decidim/pages/page.rb
decidim-pages-0.8.4 app/models/decidim/pages/page.rb
decidim-pages-0.8.3 app/models/decidim/pages/page.rb
decidim-pages-0.8.2 app/models/decidim/pages/page.rb
decidim-pages-0.8.1 app/models/decidim/pages/page.rb
decidim-pages-0.8.0 app/models/decidim/pages/page.rb
decidim-pages-0.7.4 app/models/decidim/pages/page.rb
decidim-pages-0.7.3 app/models/decidim/pages/page.rb
decidim-pages-0.7.2 app/models/decidim/pages/page.rb
decidim-pages-0.7.1 app/models/decidim/pages/page.rb
decidim-pages-0.7.0 app/models/decidim/pages/page.rb
decidim-pages-0.6.8 app/models/decidim/pages/page.rb
decidim-0.6.8 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.7 app/models/decidim/pages/page.rb
decidim-0.6.7 decidim-pages/app/models/decidim/pages/page.rb
decidim-pages-0.6.6 app/models/decidim/pages/page.rb
decidim-0.6.6 decidim-pages/app/models/decidim/pages/page.rb