Module: Apartment::SchemaCache
- Defined in:
- lib/apartment/schema_cache.rb
Class Method Summary collapse
Class Method Details
.cache_path_for(tenant) ⇒ Object
21 22 23 24 |
# File 'lib/apartment/schema_cache.rb', line 21 def cache_path_for(tenant) base = defined?(Rails) && Rails.root ? Rails.root.join('db') : Pathname.new('db') base.join("schema_cache_#{tenant}.yml").to_s end |