Method: Cell::Migration::ContextTracker#with_context
- Defined in:
- lib/cell/migration.rb
#with_context(context, search_path, exclusive: false) ⇒ Object
56 57 58 59 60 61 62 63 64 65 |
# File 'lib/cell/migration.rb', line 56 def with_context(context, search_path, exclusive: false) Cell::Meta::with_schema(search_path, exclusive: exclusive) do begin saved, self.pass_context = self.pass_context, context yield ensure self.pass_context = saved end end end |