Class: ActiveRecord::Snapshot::SelectSnapshot
- Inherits:
-
Object
- Object
- ActiveRecord::Snapshot::SelectSnapshot
- Defined in:
- lib/active_record/snapshot/commands/select_snapshot.rb
Class Method Summary collapse
Class Method Details
.call(selected_version = nil) ⇒ Object
4 5 6 7 8 9 10 11 |
# File 'lib/active_record/snapshot/commands/select_snapshot.rb', line 4 def self.call(selected_version = nil) if selected_version.blank? List.download List.last else List.get(version: selected_version) end end |