lit 0.0.4 → 0.0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +4 -0
- data/lib/lit/cache.rb +1 -1
- data/lib/lit/version.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -32,6 +32,10 @@ mount Lit::Engine => "/lit"
|
|
32
32
|
## Tested with devise, seems to work
|
33
33
|
# Lit.authentication_function = :authenticate_admin!
|
34
34
|
|
35
|
+
## Pass extra options to storage engine
|
36
|
+
## You may find it useful ie. while using redis in shared environment.
|
37
|
+
# Lit.storage_options = { :prefix=>"my_project" }
|
38
|
+
|
35
39
|
## Which storage engine use. Please remember that in production environment
|
36
40
|
## memory is not shared between processes, and hash may not be correct choice
|
37
41
|
## (as changes will not be visible for all processes). But for any production
|
data/lib/lit/cache.rb
CHANGED
@@ -118,7 +118,7 @@ module Lit
|
|
118
118
|
value = value.first
|
119
119
|
end
|
120
120
|
end
|
121
|
-
l.default_value = value
|
121
|
+
l.default_value = value.to_s
|
122
122
|
#Lit.init.logger.info "creating new localization: #{key_without_locale}"
|
123
123
|
#Lit.init.logger.info "creating new localization with value: #{value}"
|
124
124
|
#Lit.init.logger.info "creating new localization with value: #{value.class}"
|
data/lib/lit/version.rb
CHANGED