Sha256: 1802d98a1d4259c3f440c0683ad811572f6b9a7152fc145b3a04cd06f1fb98b6

Contents?: true

Size: 505 Bytes

Versions: 5

Compression:

Stored size: 505 Bytes

Contents

include Pointer

def history?
  false
end

def followable?
  false
end

event :store_in_session, :before=>:approve, :on=>:save, :changed=>:content do
  Env.session[key] = db_content
  self.db_content = ''
end

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

def content
  Env.session[key]
end

format do
  include Pointer::Format
end

format :html do
  include Pointer::HtmlFormat

  def default_core_args args
    args[:item] = :name
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
card-1.16.6 mod/05_standard/set/type/session.rb
card-1.16.5 mod/05_standard/set/type/session.rb
card-1.16.4 mod/05_standard/set/type/session.rb
card-1.16.3 mod/05_standard/set/type/session.rb
card-1.16.2 mod/05_standard/set/type/session.rb