Sha256: 29cbce71869bea8c81b7a791018d72504eef35e2feda32fefe3d54abe0989c48

Contents?: true

Size: 672 Bytes

Versions: 4

Compression:

Stored size: 672 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 EmployeeWithNested < Employee
  accepts_nested_attributes_for :account
  accepts_nested_attributes_for :position
  accepts_nested_attributes_for :projects
  accepts_nested_attributes_for :skills
end

Version data entries

4 entries across 4 versions & 1 rubygems

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