Module: Persistable::InstanceMethods
- Included in:
- BestCompanies::Industry, BestCompanies::State
- Defined in:
- lib/best_companies/concerns/persistable.rb
Instance Method Summary collapse
Instance Method Details
#add_company(company) ⇒ Object
8 9 10 |
# File 'lib/best_companies/concerns/persistable.rb', line 8 def add_company(company) self.companies << company unless self.companies.include?(company) end |
#save ⇒ Object
4 5 6 |
# File 'lib/best_companies/concerns/persistable.rb', line 4 def save self.class.all << self end |