Class: Decidim::Pages::Page

Inherits:
ApplicationRecord show all
Includes:
HasFeature, Resourceable
Defined in:
app/models/decidim/pages/page.rb

Overview

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.

Instance Method Summary collapse

Instance Method Details

#titleObject

Public: Pages doesn’t have title so we assign the feature one to it.



14
15
16
# File 'app/models/decidim/pages/page.rb', line 14

def title
  feature.name
end