Sha256: dc20a1d92fea9e2c2aebdfef66dcc52f97dab6d8e816b5a8d476aaf216817f5f
Contents?: true
Size: 371 Bytes
Versions: 1
Compression:
Stored size: 371 Bytes
Contents
class NestedFieldTest include Mongoid::Document field :title, :type => String belongs_to :field_test, :inverse_of => :nested_field_tests include Mongoid::Timestamps has_one :comment, :as => :commentable, :autosave => true accepts_nested_attributes_for :comment, :allow_destroy => true, :reject_if => proc { |attributes| attributes["content"].blank? } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-0.0.1 | spec/dummy_app/app/mongoid/nested_field_test.rb |