Class: LWS::CorporateWebsite::Page

Inherits:
Generic::Model show all
Defined in:
lib/lws/apps/corporate_website.rb

Overview

The page class

Instance Attribute Summary collapse

Attributes inherited from Generic::Model

#created_at, #updated_at, #url, #url_html

Method Summary

Methods inherited from Generic::Model

#deep_dup, #dig, #reload, #rollback, #save

Instance Attribute Details

#articlesArray<Article>



136
137
# File 'lib/lws/apps/corporate_website.rb', line 136

has_many :articles,
uri: "pages/:page_id/articles(/:id)"

#idString (readonly)



165
# File 'lib/lws/apps/corporate_website.rb', line 165

attribute :slug

#languageString



141
# File 'lib/lws/apps/corporate_website.rb', line 141

attribute :language


145
# File 'lib/lws/apps/corporate_website.rb', line 145

attribute :menu_kind


149
# File 'lib/lws/apps/corporate_website.rb', line 149

attribute :menu_name

#newsBoolean?



153
# File 'lib/lws/apps/corporate_website.rb', line 153

attribute :news

#orderInteger



157
# File 'lib/lws/apps/corporate_website.rb', line 157

attribute :order

#sitemapBoolean



161
# File 'lib/lws/apps/corporate_website.rb', line 161

attribute :sitemap


169
# File 'lib/lws/apps/corporate_website.rb', line 169

attribute :youtube_link