Skip to content

Commit

Permalink
This is now part of Rails
Browse files Browse the repository at this point in the history
  • Loading branch information
peterberkenbosch committed Aug 26, 2023
1 parent 42fac2a commit 83aef3b
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions core/app/models/spree/address.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,6 @@ class Address < Spree::Base

self.allowed_ransackable_attributes = %w[name]

scope :with_values, ->(attributes) do
where(value_attributes(attributes))
end

# @return [Address] an address with default attributes
def self.build_default(*args, &block)
where(country: Spree::Country.default).build(*args, &block)
Expand Down

0 comments on commit 83aef3b

Please sign in to comment.