Skip to content

Commit 176a520

Browse files
committed
Fix error message for unimplemented methods in conditions
This still had old naming present.
1 parent ebbd37a commit 176a520

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

promotions/app/models/solidus_promotions/condition.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ def preload_relations
8989
# @see LineItemLevelCondition
9090
# @see LineItemApplicableOrderLevelCondition
9191
def applicable?(_promotable)
92-
raise NotImplementedError, "applicable? should be implemented in a sub-class of SolidusPromotions::Rule"
92+
raise NotImplementedError, "applicable? should be implemented in a sub-class of SolidusPromotions::Condition"
9393
end
9494

9595
# Determines if the promotable object meets this condition's eligibility requirements.
@@ -122,11 +122,11 @@ def applicable?(_promotable)
122122
#
123123
# @see #eligibility_errors
124124
def eligible?(_promotable, _options = {})
125-
raise NotImplementedError, "eligible? should be implemented in a sub-class of SolidusPromotions::Rule"
125+
raise NotImplementedError, "eligible? should be implemented in a sub-class of SolidusPromotions::Condition"
126126
end
127127

128128
def level
129-
raise NotImplementedError, "level should be implemented in a sub-class of SolidusPromotions::Rule"
129+
raise NotImplementedError, "level should be implemented in a sub-class of SolidusPromotions::Condition"
130130
end
131131

132132
# Returns an errors object for tracking eligibility failures.

0 commit comments

Comments
 (0)