Sha256: 613aaf187c2b7342b5d4bc99528ee366f8ac576fa11bcfd6e8d71a8b024b57a6
Contents?: true
Size: 683 Bytes
Versions: 2
Compression:
Stored size: 683 Bytes
Contents
# frozen_string_literal: true class Structure include Mongoid::Document include Mongoid::Timestamps include Sunrise::Models::Structure include PageParts::Extension include MetaManager::Taggable include PublicActivity::Model # Columns field :title, type: String field :slug, type: String field :structure_type_id, type: Integer, default: 0 field :position_type_id, type: Integer, default: 0 field :is_visible, type: Boolean, default: true field :redirect_url, type: String index(structure_type_id: 1) index(position_type_id: 1) index(parent_id: 1) tracked owner: ->(controller, _model) { controller.try(:current_user) } page_parts :content end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sunrise-cms-1.1.1 | lib/generators/sunrise/templates/models/mongoid/structure.rb |
sunrise-cms-1.1.0 | lib/generators/sunrise/templates/models/mongoid/structure.rb |