Module: ActsAsPage::ClassMethods

Defined in:
lib/acts_as_page.rb

Instance Method Summary collapse

Instance Method Details

#acts_as_pageObject



16
17
18
19
20
21
22
23
24
25
# File 'lib/acts_as_page.rb', line 16

def acts_as_page
  extend FriendlyId
  include PartComposition
  validates :title, presence: true, uniqueness: true

  attr_accessible :title, :home, :meta_keywords, :meta_description
  translates :title, :slug, :meta_keywords, :meta_description

  friendly_id :title, use: [:slugged, :globalize]
end