summaryrefslogtreecommitdiff
path: root/app/models/design_management
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/design_management')
-rw-r--r--app/models/design_management/action.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/design_management/action.rb b/app/models/design_management/action.rb
index ecd7973a523..b9df2873a73 100644
--- a/app/models/design_management/action.rb
+++ b/app/models/design_management/action.rb
@@ -17,6 +17,8 @@ module DesignManagement
# we assume sequential ordering.
scope :ordered, -> { order(version_id: :asc) }
+ scope :by_design, -> (design) { where(design: design) }
+ scope :by_event, -> (event) { where(event: event) }
# For each design, only select the most recent action
scope :most_recent, -> do