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

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

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


8
9
10
# File 'app/models/spree/role.rb', line 8

def admin?
  name == "admin"
end