Sha256: a6bab638a5dcd91fd3b62548866334b37693399eeb3d4645f9abbfeeea0eb6f8

Contents?: true

Size: 455 Bytes

Versions: 13

Compression:

Stored size: 455 Bytes

Contents

attr_writer :director
delegate :act_manager, to: :director

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

def identify_action
  @action =
    if trash && trash_changed?
      :delete
    elsif new_card?
      :create
    else
      :update
    end
end

def current_act= act
  raise Card::Error, "not allowed to override current act" if Card.current_act
  Card.current_act = act
end

def current_act
  @current_act ||= Card.current_act
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
card-1.92.2 mod/core/set/all/stages.rb
card-1.92.1 mod/core/set/all/stages.rb
card-1.92 mod/core/set/all/stages.rb
card-1.91 mod/core/set/all/stages.rb
card-1.21.0 mod/core/set/all/stages.rb
card-1.20.4 mod/core/set/all/stages.rb
card-1.20.3 mod/core/set/all/stages.rb
card-1.20.2 mod/core/set/all/stages.rb
card-1.20.1 mod/core/set/all/stages.rb
card-1.20.0 mod/core/set/all/stages.rb
card-1.19.6 mod/core/set/all/stages.rb
card-1.19.5 mod/core/set/all/stages.rb
card-1.19.4 mod/core/set/all/stages.rb