Sha256: ef1aa4ef0b3589adb1983c0dc76af3e05a3a907cf58ef51f3d0af53919ee6918

Contents?: true

Size: 650 Bytes

Versions: 9

Compression:

Stored size: 650 Bytes

Contents

# frozen_string_literal: true

class User < ActiveRecord::Base
  # Include default devise modules. Others available are:
  # :confirmable, :lockable, :timeoutable and :omniauthable
  devise :database_authenticatable, :registerable,
         :recoverable, :rememberable, :trackable, :validatable

  include RailsWorkflow::User::Assignment

  def self.get_role_values
    [
      ['Admin', :admin]
    ]
  end

  def self.get_group_values
    [
      ['Sales Team', :sales_team],
      ['Admin', :admin],
      ['Customer Support Team', :support_team],
      ['Stock team', :stock_team],
      ['Provisioning Team', :provisioning_team]
    ]
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_workflow-0.7.3 spec/dummy/app/models/user.rb
rails_workflow-0.7.2 spec/dummy/app/models/user.rb
rails_workflow-0.7.1 spec/dummy/app/models/user.rb
rails_workflow-0.7.0 spec/dummy/app/models/user.rb
rails_workflow-0.4.4 spec/dummy/app/models/user.rb
rails_workflow-0.4.3 spec/dummy/app/models/user.rb
rails_workflow-0.4.2 spec/dummy/app/models/user.rb
rails_workflow-0.4.1 spec/dummy/app/models/user.rb
rails_workflow-0.4.0 spec/dummy/app/models/user.rb