module BookytSalary
  module Employee
    extend ActiveSupport::Concern

    included do
      has_many :salary_templates, :foreign_key => :person_id
    end
  end
end

module BookytSalary
  module Employee
    extend ActiveSupport::Concern

    included do
      # Associations
      has_many :salaries, :foreign_key => :company_id

      has_many :salary_templates, :foreign_key => :person_id
    end
  end
end

Include Employee.salaries association definition in BookytSalary::Employee.
Include Employee.salaries association definition in BookytSalary::Employee.
