Sha256: a85c9de09787569f5fee873cd99b03d8bc9de89cb9f9067de3939b0ac758fcb9

Contents?: true

Size: 260 Bytes

Versions: 21

Compression:

Stored size: 260 Bytes

Contents

module Cms
  class BasicPage
    include Mongoid::Document
    field :title, :type => String
    field :content, :type => String
    include Mongoid::Timestamps

    attr_accessible :title, :content

    validates :title, :content, :presence => true
  end
end

Version data entries

21 entries across 21 versions & 3 rubygems

Version Path
rails_admin-0.4.9 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.8 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.7 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.6 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.5 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.4 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.3 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.2 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.1 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.4.0 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.3.0 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.2.0 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.1.2 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.1.1 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.1.0 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.0.5 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.0.4 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.0.3 spec/dummy_app/app/mongoid/cms/basic_page.rb
rails_admin-0.0.2 spec/dummy_app/app/mongoid/cms/basic_page.rb