Module: RailsWorkflow::User::Assignment::ClassMethods

Defined in:
app/concerns/rails_workflow/user/assignment.rb

Instance Method Summary (collapse)

Instance Method Details

- (Object) get_rassoc(values, value)



25
26
27
# File 'app/concerns/rails_workflow/user/assignment.rb', line 25

def get_rassoc values, value
  values.rassoc(value.to_s) || values.rassoc(value.to_sym)
end

- (Object) group_text(group)



19
20
21
22
23
# File 'app/concerns/rails_workflow/user/assignment.rb', line 19

def group_text group
  if group.present?
    get_rassoc get_group_values, group
  end
end

- (Object) role_text(role)



13
14
15
16
17
# File 'app/concerns/rails_workflow/user/assignment.rb', line 13

def role_text role
  if role.present?
    get_rassoc get_role_values, role
  end
end