Sha256: c08c5fc00aa3f37699ca8e3cc79c37a13c46e16b0656fdac3ed00235fbc43cb4

Contents?: true

Size: 246 Bytes

Versions: 2

Compression:

Stored size: 246 Bytes

Contents

module Jobshop
  class Ability < ApplicationRecord
    belongs_to :organization, -> { readonly }
    has_many :role_abilities, -> (object) { where(organization_id: object.organization_id) }
    has_many :roles, through: :role_abilities
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
jobshop-0.0.179 app/models/jobshop/ability.rb
jobshop-0.0.167 app/models/jobshop/ability.rb