scss org and parenthood adding
This commit is contained in:
@ -19,4 +19,8 @@ class Child < ActiveRecord::Base
|
||||
def name
|
||||
"#{first_name} #{last_name}"
|
||||
end
|
||||
|
||||
def to_i
|
||||
id
|
||||
end
|
||||
end
|
||||
|
@ -3,4 +3,8 @@ class Page < ActiveRecord::Base
|
||||
belongs_to :person
|
||||
|
||||
scope :last_ten, -> { order(updated_at: :desc).limit(10) }
|
||||
|
||||
def to_i
|
||||
id
|
||||
end
|
||||
end
|
||||
|
@ -1,4 +1,8 @@
|
||||
class Parenthood < ActiveRecord::Base
|
||||
belongs_to :person
|
||||
belongs_to :child
|
||||
|
||||
def to_i
|
||||
id
|
||||
end
|
||||
end
|
||||
|
@ -26,4 +26,8 @@ class Person < ActiveRecord::Base
|
||||
def name
|
||||
"#{first_name} #{last_name}"
|
||||
end
|
||||
|
||||
def to_i
|
||||
id
|
||||
end
|
||||
end
|
||||
|
Reference in New Issue
Block a user