Sha256: b8a711aea573a470e94758c844dadb65184e878697fabeb28e7dbd362cf0e969

Contents?: true

Size: 435 Bytes

Versions: 16

Compression:

Stored size: 435 Bytes

Contents

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

  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

16 entries across 16 versions & 2 rubygems

Version Path
rails_admin-0.4.9 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.8 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.7 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.6 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.5 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.4 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-lbgraham-0.4.2 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.3 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.2 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.1 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.4.0 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.3.0 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.2.0 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.1.2 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.1.1 spec/dummy_app/app/active_record/nested_field_test.rb
rails_admin-0.1.0 spec/dummy_app/app/active_record/nested_field_test.rb