Class: Spree::User
- Inherits:
-
Base
- Object
- Base
- Spree::User
- Includes:
- UserAddress, UserMethods, UserPaymentSource
- Defined in:
- app/models/spree/user.rb
Class Method Summary collapse
Instance Method Summary collapse
Class Method Details
.admin_created? ⇒ Boolean
22 23 24 |
# File 'app/models/spree/user.rb', line 22 def self.admin_created? User.admin.exists? end |
Instance Method Details
#admin? ⇒ Boolean
26 27 28 |
# File 'app/models/spree/user.rb', line 26 def admin? has_spree_role?('admin') end |