Sha256: f5e0b8fad2e4f526301e89d118356c36ec0ca5606c435115d4347e9fe882b940

Contents?: true

Size: 497 Bytes

Versions: 7

Compression:

Stored size: 497 Bytes

Contents

include Pointer

def history?
  false
end

def followable?
  false
end

event :store_in_session, :prepare_to_validate, 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

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

7 entries across 7 versions & 1 rubygems

Version Path
card-1.19.6 mod/standard/set/type/session.rb
card-1.19.5 mod/standard/set/type/session.rb
card-1.19.4 mod/standard/set/type/session.rb
card-1.19.3 mod/standard/set/type/session.rb
card-1.19.2 mod/standard/set/type/session.rb
card-1.19.1 mod/standard/set/type/session.rb
card-1.19.0 mod/standard/set/type/session.rb