mirror of
https://github.com/oonyeje/Pearlception_Website_RoR.git
synced 2025-12-25 11:47:41 +00:00
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
7 lines
284 B
Ruby
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
|