Class: Spree::Role

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

Instance Method Summary (collapse)

Methods inherited from Base

display_includes, #initialize_preference_defaults, page, preference

Methods included from Preferences::Preferable

#default_preferences, #defined_preferences, #get_preference, #has_preference!, #has_preference?, #preference_default, #preference_type, #set_preference

Instance Method Details

- (Boolean) admin?

Returns:

  • (Boolean)


6
7
8
# File 'app/models/spree/role.rb', line 6

def admin?
  name == "admin"
end