Sha256: bfaddcc4e483145b496ae5b51286c05ab3d7b290f9d2f271660993ec24903d85

Contents?: true

Size: 185 Bytes

Versions: 24

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

24 entries across 24 versions & 5 rubygems

Version Path
mongoid_spacial-0.1.0 spec/models/survey.rb
mongoid_spacial-0.0.1 spec/models/survey.rb
mongoid-eager-loading-0.3.1 spec/models/survey.rb
mongoid-eager-loading-0.3.0 spec/models/survey.rb