Sha256: f09f3a72dd660bf3ad6f9b15cfb0d961b485192867bd04bcdd3e720ad601d516
Contents?: true
Size: 348 Bytes
Versions: 2
Compression:
Stored size: 348 Bytes
Contents
class NestedFieldTest < ActiveRecord::Base belongs_to :field_test, :inverse_of => :nested_field_tests belongs_to :another_field_test, :inverse_of => :nested_field_tests has_one :comment, :as => :commentable accepts_nested_attributes_for :comment, :allow_destroy => true, :reject_if => proc { |attributes| attributes["content"].blank? } end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rails_admin-0.6.0 | spec/dummy_app/app/active_record/nested_field_test.rb |
rails_admin-0.5.0 | spec/dummy_app/app/active_record/nested_field_test.rb |