Sha256: 12c34c5e89754d20a0bb42057c51dcd9ef562274d6e3c6a10f96e0bd4a0d5c19

Contents?: true

Size: 311 Bytes

Versions: 27

Compression:

Stored size: 311 Bytes

Contents

attr_writer :director
delegate :act_manager, to: :director

def director
  @director ||= Card::ActManager.fetch self
end

def identify_action explicit_delete=false
  @action =
    if explicit_delete || (trash && trash_changed?)
      :delete
    elsif new_card?
      :create
    else
      :update
    end
end

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
card-1.96.6 mod/core/set/all/stages.rb
card-1.96.5 mod/core/set/all/stages.rb
card-1.96.4 mod/core/set/all/stages.rb
card-1.96.3 mod/core/set/all/stages.rb
card-1.96.2 mod/core/set/all/stages.rb
card-1.96.1 mod/core/set/all/stages.rb
card-1.96.0 mod/core/set/all/stages.rb
card-1.95.3 mod/core/set/all/stages.rb
card-1.95.2 mod/core/set/all/stages.rb
card-1.95.1 mod/core/set/all/stages.rb
card-1.95.0 mod/core/set/all/stages.rb
card-1.94.1 mod/core/set/all/stages.rb
card-1.94.0 mod/core/set/all/stages.rb
card-1.93.13 mod/core/set/all/stages.rb
card-1.93.12 mod/core/set/all/stages.rb
card-1.93.11 mod/core/set/all/stages.rb
card-1.93.10 mod/core/set/all/stages.rb
card-1.93.9 mod/core/set/all/stages.rb
card-1.93.8 mod/core/set/all/stages.rb
card-1.93.7 mod/core/set/all/stages.rb