Sha256: 6850c34047e6efa7ee27e37e947491a88033bdf8b879403091e7ffa333e507e8

Contents?: true

Size: 767 Bytes

Versions: 4

Compression:

Stored size: 767 Bytes

Contents

# == Schema Information
#
# Table name: employees
#
#  id                   :integer          not null, primary key
#  name                 :string(255)
#  email                :string(255)
#  income               :integer
#  bonus                :boolean
#  position_id          :integer
#  created_at           :datetime
#  updated_at           :datetime
#  title                :string(255)
#  phone                :string(255)
#  position_category_id :integer
#

class EmployeeWithDestroyableNested < Employee
  accepts_nested_attributes_for :account, allow_destroy: true
  accepts_nested_attributes_for :position, allow_destroy: true
  accepts_nested_attributes_for :projects, allow_destroy: true
  accepts_nested_attributes_for :skills, allow_destroy: true
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
basepack-1.0.1 spec/dummy_app/app/models/employee_with_destroyable_nested.rb
basepack-1.0.0 spec/dummy_app/app/models/employee_with_destroyable_nested.rb
basepack-1.0.0.pre.0 spec/dummy_app/app/models/employee_with_destroyable_nested.rb
basepack-0.2.0 spec/dummy_app/app/models/employee_with_destroyable_nested.rb