Class: Spree::Role

Inherits:
Base
  • Object
show all
Defined in:
core/app/models/spree/role.rb

Instance Method Summary collapse

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


10
11
12
# File 'core/app/models/spree/role.rb', line 10

def admin?
  name == "admin"
end