concord-consortium/rigse

View on GitHub
rails/app/models/role.rb

Summary

Maintainability
A
0 mins
Test Coverage
class Role < ApplicationRecord

  has_and_belongs_to_many :users, -> { distinct }, :join_table => "roles_users"
  acts_as_list
  acts_as_replicatable

  default_scope { order('position ASC') }

end