Sha256: b534811893bebb7b3be392ddea77bd80572d35d2d4b2415d42a61268b5ed437e

Contents?: true

Size: 232 Bytes

Versions: 4

Compression:

Stored size: 232 Bytes

Contents

module Plutus
  module Tenancy
    extend ActiveSupport::Concern

    included do
      validates :name, presence: true, uniqueness: { scope: :tenant_id }

      belongs_to :tenant, class_name: Plutus.tenant_class
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
plutus-0.12.2 app/models/plutus/tenancy.rb
plutus-0.11.0 app/models/plutus/tenancy.rb
plutus-0.10.1 app/models/plutus/tenancy.rb
plutus-0.10.0 app/models/plutus/tenancy.rb