Module: TemporalTables::NamedExtensionsWithHistory
- Defined in:
- lib/temporal_tables/scope_extensions.rb
Instance Method Summary collapse
Instance Method Details
#scope(name, body, &block) ⇒ Object
3 4 5 6 7 8 9 |
# File 'lib/temporal_tables/scope_extensions.rb', line 3 def scope(name, body, &block) if history history_body = -> { history.instance_exec &body } history.scope_without_history name, history_body, &block end super name, body, &block end |