Sha256: 7d62255de6c3ab197564c1bc10a5cdf7c53bba8264b1f627f0f8c1ff4bf99bf5

Contents?: true

Size: 866 Bytes

Versions: 1

Compression:

Stored size: 866 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class All
# Set: All cards (LocationHistory)
#
module LocationHistory;
extend Card::Set
def self.source_location; "/Users/ezl5238/dev/decko/gem/mod/session/set/all/location_history.rb"; end
event :discard_deleted_locations, :finalize, on: :delete do
  Env.discard_locations_for self
  configure_successful_deletion if success.target == self
end

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

# TO DISCUSS: should this default behavior be directly in the controller?
# Or at least in decko?
def configure_successful_deletion
  if Env.ajax?
    success.card = self
    success.view = :unknown unless success.view
  else
    success.target = :previous
  end
end
end;end;end;end;
# ~~ generated from /Users/ezl5238/dev/decko/gem/mod/session/set/all/location_history.rb ~~

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
card-1.102.0 tmpsets/set/mod030-session/all/location_history.rb