class Hippo::Model

Public Class Methods

belongs_to_tenant() click to toggle source
# File lib/hippo/model.rb, line 23
def self.belongs_to_tenant
    belongs_to :tenant, class_name: 'Hippo::Tenant'
    multi_tenant :tenant
end
scoped_by_tenant?() click to toggle source

will be overridden if models call belongs_to_tenant

# File lib/hippo/model.rb, line 29
def self.scoped_by_tenant?
    false
end