Sha256: f471fd3d94e37d92359cc85b0f7003d7230a0eea7d0a79c653fe75610c473c8c
Contents?: true
Size: 403 Bytes
Versions: 1
Compression:
Stored size: 403 Bytes
Contents
# frozen_string_literal: true module SolidusVolumePricing module Spree module UserDecorator def resolve_role if has_spree_role? ::Spree::Config.volume_pricing_role.to_sym ::Spree::Role.find_by name: ::Spree::Config.volume_pricing_role else ::Spree::Role.find_by name: 'user' end end ::Spree.user_class.prepend self end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
solidus_volume_pricing-1.0.0 | app/decorators/models/solidus_volume_pricing/spree/user_decorator.rb |