Sha256: c9c79c8ccb6a8f2cf50ff27b2d75c896e8fefcebafda552291430b14e0879b2f

Contents?: true

Size: 414 Bytes

Versions: 6

Compression:

Stored size: 414 Bytes

Contents

def act_card?
  self == Card::ActManager.act_card
end

event :finalize_act, after: :finalize_action, when: :act_card? do
  Card::ActManager.act.update_attributes! card_id: id
end

event :remove_empty_act, :integrate_with_delay_final, when: :remove_empty_act? do
  # Card::ActManager.act.delete
  # Card::ActManager.act = nil
end

def remove_empty_act?
  act_card? && ActManager.act&.ar_actions&.reload&.empty?
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
card-1.96.1 mod/history/set/all/acts.rb
card-1.96.0 mod/history/set/all/acts.rb
card-1.95.3 mod/history/set/all/acts.rb
card-1.95.2 mod/history/set/all/acts.rb
card-1.95.1 mod/history/set/all/acts.rb
card-1.95.0 mod/history/set/all/acts.rb