Sha256: fdf82bd7e7098f0755c1130a2b9dd9bb14aa704be0009d5f0cd2876093385740

Contents?: true

Size: 818 Bytes

Versions: 18

Compression:

Stored size: 818 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; module All; module States; extend Card::Set
# ~~~~~~~~~~~ above autogenerated; below pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/states.rb ~~~~~~~~~~~
def new_card?
  new_record? ||   # not yet in db (from ActiveRecord)
  !!@from_trash    # in process of restoration from trash, not yet "re-created"
end
alias_method :new?, :new_card?

def known?
  real? || virtual?
end

def real?
  !new_card?
end

def unknown?
  !known?
end

def pristine?
  # has not been edited directly by human users.  bleep blorp.
  new_card? or !actions.joins(:act).where('card_acts.actor_id != ?', Card::WagnBotID).exists?
end


# ~~~~~~~~~~~ below autogenerated; above pulled from /Users/ethan/dev/wagn/gem/card/mod/01_core/set/all/states.rb ~~~~~~~~~~~
end;end;end;end;

Version data entries

18 entries across 18 versions & 1 rubygems

Version Path
card-1.18.6 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.5 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.4 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.3 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.2 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.1 tmpsets/set/mod001-01_core/all/states.rb
card-1.18.0 tmpsets/set/mod001-01_core/all/states.rb
card-1.17.4 tmpsets/set/mod001-01_core/all/states.rb
card-1.17.3 tmpsets/set/mod001-01_core/all/states.rb
card-1.17.2 tmpsets/set/mod001-01_core/all/states.rb
card-1.17.1 tmpsets/set/mod001-01_core/all/states.rb
card-1.17.0 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.15 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.14 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.13 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.12 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.11 tmpsets/set/mod001-01_core/all/states.rb
card-1.16.10 tmpsets/set/mod001-01_core/all/states.rb