Sha256: a4696b898c8a77b897914c9298cadbf076de0ac516fede2fd4247d3923b66360

Contents?: true

Size: 193 Bytes

Versions: 11

Compression:

Stored size: 193 Bytes

Contents

class Peopleable < ApplicationRecord
	belongs_to :people
	belongs_to :peopleable, polymorphic: true
end

class People < ApplicationRecord
	has_many :peopleables
	self.table_name = "peoples"
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
iatelier-0.5.2 lib/iatelier/models/people.rb
iatelier-0.5.1 lib/iatelier/models/people.rb
iatelier-0.5.0 lib/iatelier/models/people.rb
iatelier-0.4.4 lib/iatelier/models/people.rb
iatelier-0.4.3 lib/iatelier/models/people.rb
iatelier-0.4.2 lib/iatelier/models/people.rb
iatelier-0.4.1 lib/iatelier/models/people.rb
iatelier-0.4.0 lib/iatelier/models/people.rb
iatelier-0.3.2 lib/iatelier/models/people.rb
iatelier-0.3.1 lib/iatelier/models/people.rb
iatelier-0.3.0 lib/iatelier/models/people.rb