Okechi Onyeje 44f716b568 Added Distributor and Supplier Filters:
Remaing Bugs:
- @Bug: With trying to select a different filter for supplier or distributor dropdown filtermenu popup closes.
- @Bug: When filtering statistics, original chart appears as underlay to new filtered chart
- @Bug: When logging  out of the dashboard, the user is told there account was cancelled when they werent
2017-07-21 16:17:30 -04:00

7 lines
284 B
Ruby

class Run < ApplicationRecord
has_many :oysters
scope :by_date, lambda { |runDate| where(:runDate => runDate)}
scope :by_supplier, lambda { |supplier| where(:supplier => supplier)}
scope :by_distributor, lambda { |distributor| where(:distributor => distributor)}
end