Sha256: 121fb9ae1895e6b1a3b63dd1a8dab1d89ee86faba5267be7037dc3e6807cce6e

Contents?: true

Size: 185 Bytes

Versions: 5

Compression:

Stored size: 185 Bytes

Contents

class Survey
  include Mongoid::Document
  embeds_many :questions

  accepts_nested_attributes_for :questions, :reject_if => lambda{ |a| a[:content].blank? }, :allow_destroy => true
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
mongoid-eager-loading-0.2.0 spec/models/survey.rb
mongoid-eager-loading-0.1.2 spec/models/survey.rb
mongoid-eager-loading-0.1.1 spec/models/survey.rb
mongoid-eager-loading-0.1.0 spec/models/survey.rb
mongoid-locomotive-2.0.0.beta9 spec/models/survey.rb