Sha256: 603531cf77728bfb7b9978a6fb8187fc4ad9b2dc75d8327548d0706ad699be4b

Contents?: true

Size: 187 Bytes

Versions: 26

Compression:

Stored size: 187 Bytes

Contents

module Spree
  module Seeds
    class Roles
      prepend Spree::ServiceModule::Base

      def call
        Spree::Role.where(name: 'admin').first_or_create!
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/services/spree/seeds/roles.rb
spree_core-4.10.0 app/services/spree/seeds/roles.rb
spree_core-4.9.0 app/services/spree/seeds/roles.rb
spree_core-4.8.3 app/services/spree/seeds/roles.rb
spree_core-4.8.2 app/services/spree/seeds/roles.rb
spree_core-4.7.3 app/services/spree/seeds/roles.rb
spree_core-4.6.6 app/services/spree/seeds/roles.rb
spree_core-4.5.5 app/services/spree/seeds/roles.rb
spree_core-4.4.1 app/services/spree/seeds/roles.rb
spree_core-4.5.4 app/services/spree/seeds/roles.rb
spree_core-4.6.5 app/services/spree/seeds/roles.rb
spree_core-4.7.2 app/services/spree/seeds/roles.rb
spree_core-4.7.1 app/services/spree/seeds/roles.rb
spree_core-4.6.4 app/services/spree/seeds/roles.rb
spree_core-4.7.0 app/services/spree/seeds/roles.rb
spree_core-4.6.3 app/services/spree/seeds/roles.rb
spree_core-4.6.2 app/services/spree/seeds/roles.rb
spree_core-4.6.1 app/services/spree/seeds/roles.rb
spree_core-4.6.0 app/services/spree/seeds/roles.rb
spree_core-4.5.3 app/services/spree/seeds/roles.rb