Sha256: 6fbf431d59292573ad62408e8bbeb64ac439a8660786f03c103d0d63b4fa764a

Contents?: true

Size: 277 Bytes

Versions: 3

Compression:

Stored size: 277 Bytes

Contents

# This component shares state with StatefulComponent by setting +persistence_key+ to that component's js_id (which is used as persestence_key by default)
class PersistenceWithSharedState < Persistence
  def configure(c)
    c.persistence_key = :persistence
    super
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
netzke-core-0.8.4 test/core_test_app/app/components/persistence_with_shared_state.rb
netzke-core-0.8.3 test/core_test_app/app/components/persistence_with_shared_state.rb
netzke-core-0.8.2 test/core_test_app/app/components/persistence_with_shared_state.rb