Sha256: b0574afe88a4f6a2bacd6ae3d0d3e137cce69bed7b08837e47b808ba58f038f1
Contents?: true
Size: 394 Bytes
Versions: 33
Compression:
Stored size: 394 Bytes
Contents
module Spree module Stores class FindCurrent def initialize(scope: nil, url: nil) @scope = scope || Spree::Store @url = url end def execute by_url(scope) || scope.default end protected attr_reader :scope, :url def by_url(scope) return if url.blank? scope.by_url(url).first end end end end
Version data entries
33 entries across 33 versions & 1 rubygems