Sha256: c25373aad4af31eb2d2a5c231fa087c7da695d4016f79fdcaa598440b98451d8

Contents?: true

Size: 633 Bytes

Versions: 9

Compression:

Stored size: 633 Bytes

Contents

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.3.7 spec/dummy/app/models/user.rb
rails_workflow-0.3.6 spec/dummy/app/models/user.rb
rails_workflow-0.3.5 spec/dummy/app/models/user.rb
rails_workflow-0.3.4 spec/dummy/app/models/user.rb
rails_workflow-0.3.3 spec/dummy/app/models/user.rb
rails_workflow-0.3.2 spec/dummy/app/models/user.rb
rails_workflow-0.3.1 spec/dummy/app/models/user.rb
rails_workflow-0.3.0 spec/dummy/app/models/user.rb
rails_workflow-0.2.2 spec/dummy/app/models/user.rb