Skip to content

Commit

Permalink
Merge pull request #3629 from halilim/patch-1
Browse files Browse the repository at this point in the history
Remove the duplicated active scope and name validations
  • Loading branch information
kennyadsl authored May 22, 2020
2 parents afd7f5b + 18992d3 commit dd77373
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/app/models/spree/store_credit_reason.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ class Spree::StoreCreditReason < Spree::Base
include Spree::NamedType

has_many :store_credit_events, inverse_of: :store_credit_reason

validates :name, presence: true, uniqueness: { case_sensitive: false, allow_blank: true }

scope :active, -> { where(active: true) }
end

0 comments on commit dd77373

Please sign in to comment.