fullstack-cms 0.2.17 → 0.2.18
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.2.
|
1
|
+
0.2.18
|
@@ -10,7 +10,7 @@ module SettingsHelper
|
|
10
10
|
namespaced_key = namespaced_key.to_s
|
11
11
|
group, key = namespaced_key.include?(namespace_separator) ? namespaced_key.split(namespace_separator) : [nil, namespaced_key]
|
12
12
|
|
13
|
-
s = Setting.global("#{key}", :autocreate => false, :default => value, :group => group, :options => opts[:options], :locale => opts[:locale])
|
13
|
+
s = Setting.global("#{key}", :autocreate => false, :default => value, :group => group, :options => opts[:options], :locale => (opts[:locale] == false ? nil : I18n.locale.to_s))
|
14
14
|
|
15
15
|
end
|
16
16
|
|
@@ -31,7 +31,7 @@
|
|
31
31
|
<%= link_to t(stg.key, :scope => "helpers.label", :default => stg.key.to_s.humanize), [:edit, :admin, stg] %>
|
32
32
|
</th>
|
33
33
|
<td style="width: 10%">
|
34
|
-
<%= locale ? t("locale_names.#{locale}", :default => "#{locale}".humanize) : "-" %>
|
34
|
+
<%= stg.locale ? t("locale_names.#{stg.locale}", :default => "#{stg.locale}".humanize) : "-" %>
|
35
35
|
</td>
|
36
36
|
<td>
|
37
37
|
<% if stg.value %>
|
data/fullstack-cms.gemspec
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
<script>
|
2
|
-
var _gaq=[['_setAccount','<%= setting("google_analytics_code", "UA-xxxxxx-x") %>'],['_trackPageview']];
|
2
|
+
var _gaq=[['_setAccount','<%= setting("google_analytics_code", "UA-xxxxxx-x", :locale => false) %>'],['_trackPageview']];
|
3
3
|
(function(d,t){var g=d.createElement(t),s=d.getElementsByTagName(t)[0];
|
4
4
|
g.src=('https:'==location.protocol?'//ssl':'//www')+'.google-analytics.com/ga.js';
|
5
5
|
s.parentNode.insertBefore(g,s)}(document,'script'));
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fullstack-cms
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.18
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -333,7 +333,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
333
333
|
version: '0'
|
334
334
|
segments:
|
335
335
|
- 0
|
336
|
-
hash:
|
336
|
+
hash: 1287581399845633310
|
337
337
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
338
338
|
none: false
|
339
339
|
requirements:
|