Sha256: 9aab2f4dded3a6eb1aeaa088573d0e92ffc0dd421d72aa4ce33b1e024a3941d4
Contents?: true
Size: 160 Bytes
Versions: 2
Compression:
Stored size: 160 Bytes
Contents
module Alchemy::SpreeUserExtension def spree_roles if admin? ::Spree::Role.where(name: 'admin') else ::Spree::Role.none end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alchemy-solidus-1.1.1 | lib/alchemy/solidus/alchemy_user_extension.rb |
alchemy-solidus-1.1.0 | lib/alchemy/solidus/alchemy_user_extension.rb |