Sha256: 12cd57b09170b791d6eab78a9a38abb543bdf71e14eb8bc7cab1a7dafe305738

Contents?: true

Size: 254 Bytes

Versions: 14

Compression:

Stored size: 254 Bytes

Contents

event :discard_deleted_locations, after: :store, on: :delete do
  Env.discard_locations_for self
  if success.target == self
    success.target = :previous
  end
end

event :save_current_location, before: :show, on: :read do
  Env.save_location self
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
card-1.17.4 mod/01_core/set/all/location_history.rb
card-1.17.3 mod/01_core/set/all/location_history.rb
card-1.17.2 mod/01_core/set/all/location_history.rb
card-1.17.1 mod/01_core/set/all/location_history.rb
card-1.17.0 mod/01_core/set/all/location_history.rb
card-1.16.15 mod/01_core/set/all/location_history.rb
card-1.16.14 mod/01_core/set/all/location_history.rb
card-1.16.13 mod/01_core/set/all/location_history.rb
card-1.16.12 mod/01_core/set/all/location_history.rb
card-1.16.11 mod/01_core/set/all/location_history.rb
card-1.16.10 mod/01_core/set/all/location_history.rb
card-1.16.9 mod/01_core/set/all/location_history.rb
card-1.16.8 mod/01_core/set/all/location_history.rb
card-1.16.7 mod/01_core/set/all/location_history.rb