Sha256: 255bf35db559cf356847de6f825c5b57bf8cfff6ff38cff1cb4e6a0a3a5d1edc

Contents?: true

Size: 446 Bytes

Versions: 15

Compression:

Stored size: 446 Bytes

Contents

module SeedUserRoles
  def self.seed
    Role.public || Factory( :role_public )
    Role.learner || Factory( :role_learner )
    Role.user_admin || Factory(:role_user_admin)
    Role.course_admin || Factory(:role_course_admin)
    Role.product_admin || Factory(:role_product_admin)
    Role.tech_support || Factory(:role_tech_support)
    Role.scitent_admin || Factory(:role_scitent_admin)
  end

  def self.clean
    Role.destroy_all
  end
end

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
scidea-hsfc-policies-0.0.3 features/support/seed_user_roles.rb
scidea-hsfc-policies-0.0.2 features/support/seed_user_roles.rb
scidea-hsfc-policies-0.0.1 features/support/seed_user_roles.rb
scidea-schools-1.1 features/support/seed_user_roles.rb
scidea-schools-1.0.6 features/support/seed_user_roles.rb
scidea-cv-redirects-0.0.2 features/support/seed_user_roles.rb
scidea-cv-sco_completion-0.0.2 features/support/seed_user_roles.rb
scidea-cv-sco_completion-0.0.1 features/support/seed_user_roles.rb
scidea-cv-redirects-0.0.1 features/support/seed_user_roles.rb
scidea-schools-1.0.5 features/support/seed_user_roles.rb
scidea-schools-1.0.4 features/support/seed_user_roles.rb
scidea-schools-1.0.3 features/support/seed_user_roles.rb
scidea-schools-1.0.2 features/support/seed_user_roles.rb
scidea-schools-1.0.1 features/support/seed_user_roles.rb
scidea-schools-1.0.0 features/support/seed_user_roles.rb