Sha256: b02cc100daa64bcedf5923dbcd600ec6da99fe558605356f6f8811820f98af71
Contents?: true
Size: 266 Bytes
Versions: 2
Compression:
Stored size: 266 Bytes
Contents
module Jobshop class Ability < ApplicationRecord belongs_to :organization, class_name: "Jobshop::Organization" 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.163 | app/models/jobshop/ability.rb |
jobshop-0.0.157 | app/models/jobshop/ability.rb |