Sha256: 2ffa8b4f5a2386009f79815eee24c097262ec2faeff9ae3aca9157552d515231

Contents?: true

Size: 908 Bytes

Versions: 9

Compression:

Stored size: 908 Bytes

Contents

# -*- encoding : utf-8 -*-
class Card; module Set; class Type
# Set: All "Session" cards
#
module Session;
extend Card::Set
def self.source_location; "/Users/ethan/dev/decko/gem/card/mod/standard/set/type/session.rb"; end
include_set Pointer

def history?
  false
end

def followable?
  false
end

event :store_in_session, :initialize, on: :save, changed: :content do
  Env.session[key] = db_content
  self.db_content = ""
end

event :delete_in_session, :validate, on: :delete do
  Env.session[key] = nil
  abort :success
end

def content
  Env.session[key]
end

def content= val
  self.db_content = Env.session[key] = val
end

module HtmlFormat; parent.send :register_set_format, Card::Format::HtmlFormat, self; extend Card::Set::AbstractFormat
  before :core do
    voo.items[:view] = :name
  end
end
end;end;end;end;
# ~~ generated from /Users/ethan/dev/decko/gem/card/mod/standard/set/type/session.rb ~~

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
card-1.99.4 tmpsets/set/mod021-standard/type/session.rb
card-1.99.3 tmpsets/set/mod021-standard/type/session.rb
card-1.99.2 tmpsets/set/mod021-standard/type/session.rb
card-1.99.1 tmpsets/set/mod021-standard/type/session.rb
card-1.99.0 tmpsets/set/mod021-standard/type/session.rb
card-1.98.3 tmpsets/set/mod021-standard/type/session.rb
card-1.98.2 tmpsets/set/mod021-standard/type/session.rb
card-1.98.1 tmpsets/set/mod021-standard/type/session.rb
card-1.98.0 tmpsets/set/mod021-standard/type/session.rb