Module: Cell::ModelExtensions::ClassMethods
- Defined in:
- lib/cell/model_extensions.rb
Instance Method Summary collapse
- #global_model? ⇒ Boolean
-
#load_schema! ⇒ Object
When a model’s schema is lazy-loaded, we want to make sure our view of the DB allows us to get introspection data.
Instance Method Details
#global_model? ⇒ Boolean
29 30 31 |
# File 'lib/cell/model_extensions.rb', line 29 def global_model? ::Cell::Meta.global_model?(self) end |
#load_schema! ⇒ Object
When a model’s schema is lazy-loaded, we want to make sure our view of the DB allows us to get introspection data.
35 36 37 38 39 |
# File 'lib/cell/model_extensions.rb', line 35 def load_schema! ::Cell::Meta.with_structural_schema do return super end end |