Sha256: cdd8d9134e5722d9e08a9a1f546e976c68add2a79af904acf76ce1edc4c0685c

Contents?: true

Size: 536 Bytes

Versions: 7

Compression:

Stored size: 536 Bytes

Contents

class Statics < Entities
  def setup_data
    value_str :view_name
    value_str :data_str
  end

  def get(name)
    match_by_view_name(name) or
        create(:view_name => name, :data_str => '')
  end

  def get_hash(name)
    s = Statics.get(name)
    s.data_str.length == 0 and
        s.data_str = {}
    s.data_str
  end
end

# This way Statics is instantiated immediately, instead of
# any time later when calling QooxView.init
RPCQooxdooService.add_prime_service(Statics,
                                    'Entities.Statics')

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
qooxview-1.9.1312 lib/qooxview/helpers/static.rb
qooxview-1.9.13.pre.12 lib/qooxview/helpers/static.rb
qooxview-1.9.13.pre.11 lib/qooxview/helpers/static.rb
qooxview-1.9.13.pre.10 lib/qooxview/helpers/static.rb
qooxview-1.9.11 lib/qooxview/helpers/static.rb
qooxview-1.9.10 lib/qooxview/helpers/static.rb
qooxview-1.9.9 lib/qooxview/helpers/static.rb