diff options
| author | mo khan <mo@mokhan.ca> | 2014-02-21 23:50:52 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2014-02-21 23:50:52 -0700 |
| commit | 842ee349392844ff08e818151a8eb5ca00b67d10 (patch) | |
| tree | df0566008cf97f05e45930e023106ea14646356e /app | |
| parent | 39fc3e184c1c185ffc9fc1f17bd19c5a8d9d0106 (diff) | |
refactor specs to target the filter licenses method.
Diffstat (limited to 'app')
| -rw-r--r-- | app/models/company.rb | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/app/models/company.rb b/app/models/company.rb index 630610f..c1c2d9f 100644 --- a/app/models/company.rb +++ b/app/models/company.rb @@ -1,10 +1,6 @@ class Company < ActiveRecord::Base has_many :licenses - def status(status) - licenses.status(status) - end - def filter_licenses_using(search_filters) result = self.licenses search_filters.each { |key, value| result = result.public_send(key, value) if value.present? } |
