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

Methods included from Core::Permalinks

#generate_permalink, #save_permalink

Instance Method Details

#admin?Boolean

Returns:

  • (Boolean)


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

def admin?
  name == "admin"
end