module Persistable::InstanceMethods

Public Instance Methods

add_company(company) click to toggle source
# File lib/best_companies/concerns/persistable.rb, line 8
def add_company(company)
 self.companies << company unless self.companies.include?(company)
end
save() click to toggle source
# File lib/best_companies/concerns/persistable.rb, line 4
def save
 self.class.all << self
end