Skip to content

Commit

Permalink
Merge branch 'main' into add_brand_to_product_from_config
Browse files Browse the repository at this point in the history
  • Loading branch information
shahmayur001 authored Dec 3, 2024
2 parents 2a64a9b + ad84609 commit a7a5b0c
Show file tree
Hide file tree
Showing 12 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions core/config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2099,6 +2099,7 @@ en:
scope: Scope
search: Search
search_results: Search results for '%{keywords}'
search_results_all: Show all results for '%{keywords}'
searching: Searching
secure_connection_type: Secure Connection Type
security_settings: Security Settings
Expand Down
2 changes: 1 addition & 1 deletion promotions/app/models/solidus_promotions/promotion.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class Promotion < Spree::Base
belongs_to :original_promotion, class_name: "Spree::Promotion", optional: true
has_many :benefits, class_name: "SolidusPromotions::Benefit", dependent: :destroy
has_many :conditions, through: :benefits
has_many :codes, class_name: "SolidusPromotions::PromotionCode", dependent: :destroy
has_many :codes, class_name: "SolidusPromotions::PromotionCode", dependent: :destroy, inverse_of: :promotion
has_many :code_batches, class_name: "SolidusPromotions::PromotionCodeBatch", dependent: :destroy
has_many :order_promotions, class_name: "SolidusPromotions::OrderPromotion", dependent: :destroy

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,10 @@ def create

private

def model_class
SolidusPromotions::PromotionCode
end

def load_promotion
@promotion = SolidusPromotions::Promotion
.accessible_by(current_ability, :show)
Expand Down

0 comments on commit a7a5b0c

Please sign in to comment.