Class: Hippo::Model

Direct Known Subclasses

Asset, Subscription, SystemSettings, Tenant, User

Constant Summary

Constants included from Concerns::ApiAttributeAccess

Concerns::ApiAttributeAccess::DEFAULT_BLACKLISTED

Class Method Summary collapse

Methods included from Concerns::ApiAttributeAccess

#_set_attribute_data_from_collection, #set_attribute_data, #setting_attribute_is_allowed?

Class Method Details

.belongs_to_tenantObject



23
24
25
26
# 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?Boolean

will be overridden if models call belongs_to_tenant

Returns:

  • (Boolean)


29
30
31
# File 'lib/hippo/model.rb', line 29

def self.scoped_by_tenant?
    false
end