Sha256: b486fd5acc6f93ec115b4a433eade46a06b7cdae7247cff274ef5e28da1fb7db

Contents?: true

Size: 277 Bytes

Versions: 4

Compression:

Stored size: 277 Bytes

Contents

Shove this in an initializer and smoke it:

 App::Application.config.redis_snippets = {
   :connection => ::Redis::Namespace.new("my_namespace", :redis => ::Redis.new),
   :keys => [:key1, :key2]
 }

Access /admin/snippets/.

Then use helper snippet().

 <%= snippet(:key1) %>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
redis_snippets-0.0.4 README
redis_snippets-0.0.3 README
redis_snippets-0.0.2 README
redis_snippets-0.0.1 README