Sha256: 78b55a66b7ea684eb103aad63f186997c2692373de6f0ba97224cdfc3bf1bb96

Contents?: true

Size: 142 Bytes

Versions: 53

Compression:

Stored size: 142 Bytes

Contents

class Princess
  include Mongoid::Document
  field :primary_color
  def color
    primary_color.to_s
  end
  validates_presence_of :color
end

Version data entries

53 entries across 50 versions & 8 rubygems

Version Path
mongoid-5.4.1 spec/app/models/princess.rb
mongoid-5.4.0 spec/app/models/princess.rb
mongoid-5.2.1 spec/app/models/princess.rb
mongoid-5.2.0 spec/app/models/princess.rb
mongoid-5.2.0.rc0 spec/app/models/princess.rb
mongoid-5.1.6 spec/app/models/princess.rb
mongoid-5.1.5 spec/app/models/princess.rb
mongoid-5.1.4 spec/app/models/princess.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-4.0.2/spec/app/models/princess.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/gems/mongoid-5.1.3/spec/app/models/princess.rb
mongoid-5.1.3 spec/app/models/princess.rb
mongoid-5.1.2 spec/app/models/princess.rb
mongoid-5.1.1 spec/app/models/princess.rb
mongoid-5.1.0 spec/app/models/princess.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.1/spec/app/models/princess.rb
tdiary-4.2.1 vendor/bundle/ruby/2.2.0/gems/mongoid-5.0.2/spec/app/models/princess.rb
tdiary-4.2.1 vendor/bundle/ruby/2.3.0/gems/mongoid-5.0.2/spec/app/models/princess.rb
mongoid-5.0.2 spec/app/models/princess.rb
mongoid-5.0.1 spec/app/models/princess.rb
mongoid-paranoia-1.1.0 spec/app/models/princess.rb