Sha256: 12b079666c2d9b7058d548288554cdc4f65a5094317730a7ebc7ffb03658a2d1
Contents?: true
Size: 430 Bytes
Versions: 9
Compression:
Stored size: 430 Bytes
Contents
class Page < Content belongs_to :user validates_presence_of :name, :title, :body validates_uniqueness_of :name content_fields :body def self.default_order 'name ASC' end def location(anchor=nil, only_path=true) blog.url_for(:only_path => only_path, :action => 'view_page', :name => name, :anchor => anchor) end protected def default_text_filter_config_key; 'text_filter'; end end
Version data entries
9 entries across 9 versions & 1 rubygems