Sha256: 8da8fe6786403eaeb45544157d364ad6cd5bd99f8fe016554aa3ae807e501d6b

Contents?: true

Size: 342 Bytes

Versions: 5

Compression:

Stored size: 342 Bytes

Contents

class NestedFieldTest < ActiveRecord::Base
  attr_accessible :title, :field_test_id, :comment_attributes

  belongs_to :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

5 entries across 5 versions & 2 rubygems

Version Path
rails_admin-0.0.5 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.0.4 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.0.3 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.0.2 spec/dummy_app/app/active_record/nested_field_test.rb
upstream-rails_admin-1.0.2 spec/dummy_app/app/active_record/nested_field_test.rb