Module: Cell::Ext::ActiveRecord::ClassMethods
- Defined in:
- lib/cell/ext/active_record.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
28 29 30 |
# File 'lib/cell/ext/active_record.rb', line 28 def global_model? 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.
34 35 36 37 38 |
# File 'lib/cell/ext/active_record.rb', line 34 def load_schema! Meta.with_structural_schema do return super end end |