Sha256: f74aa1afac732675e652e9601a3c97da5b3f9b9e588ab797b2efa939c44acbc0
Contents?: true
Size: 663 Bytes
Versions: 6
Compression:
Stored size: 663 Bytes
Contents
class Structure include Mongoid::Document include Mongoid::Timestamps include Sunrise::Models::Structure include PageParts::Extension include MetaManager::Taggable # include Mongoid::History::Trackable # Columns field :title, :type => String field :slug, :type => String field :kind, :type => Integer, :default => 0 field :position, :type => Integer, :default => 0 field :is_visible, :type => Boolean, :default => true field :redirect_url, :type => String index({:kind => 1}) index({:position => 1}) index({:parent_id => 1}) # track_history :on => [:title, :kind, :position, :is_visible] # page_parts :content, :sidebar end
Version data entries
6 entries across 6 versions & 1 rubygems