Class: Spree::Seeds::Roles
- Inherits:
-
Object
- Object
- Spree::Seeds::Roles
- Includes:
- Spree::ServiceModule::Base
- Defined in:
- app/services/spree/seeds/roles.rb
Instance Method Summary collapse
Methods included from Spree::ServiceModule::Base
Instance Method Details
#call ⇒ Object
6 7 8 |
# File 'app/services/spree/seeds/roles.rb', line 6 def call Spree::Role.where(name: 'admin').first_or_create! end |