Class: Hippo::Model
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- Hippo::Model
- Includes:
- Concerns::ApiAttributeAccess, Concerns::ApiPath, Concerns::AssociationExtensions, Concerns::CodeIdentifier, Concerns::ExportAssociations, Concerns::ExportJoinTables, Concerns::ExportMethods, Concerns::ExportScope, Concerns::PubSub, Concerns::Queries, Concerns::RandomIdentifer, Concerns::SanitizeFields, Concerns::SortingExpressions
- Defined in:
- lib/hippo/model.rb
Direct Known Subclasses
Constant Summary
Constants included from Concerns::ApiAttributeAccess
Concerns::ApiAttributeAccess::DEFAULT_BLACKLISTED
Class Method Summary collapse
- .belongs_to_tenant ⇒ Object
-
.scoped_by_tenant? ⇒ Boolean
will be overridden if models call belongs_to_tenant.
Methods included from Concerns::ApiAttributeAccess
#_set_attribute_data_from_collection, #set_attribute_data, #setting_attribute_is_allowed?
Class Method Details
.belongs_to_tenant ⇒ Object
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
29 30 31 |
# File 'lib/hippo/model.rb', line 29 def self.scoped_by_tenant? false end |