qor_layout 0.0.3 → 0.0.4
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/VERSION +1 -1
- data/app/models/qor/layout/setting.rb +3 -3
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
@@ -34,7 +34,7 @@ module Qor
|
|
34
34
|
|
35
35
|
if stored_value =~ /^([\w:]+)\((\d+)\)$/
|
36
36
|
return ($1.constantize.find_by_id($2) rescue stored_value)
|
37
|
-
elsif gadget_setting
|
37
|
+
elsif gadget_setting
|
38
38
|
gadget_name = gadget_setting.options[:name] || name
|
39
39
|
gadgets = children.where(:name => gadget_name)
|
40
40
|
return (for_setting ? gadgets.map(&:settings) : gadgets)
|
@@ -98,7 +98,7 @@ module Qor
|
|
98
98
|
|
99
99
|
def settings
|
100
100
|
if gadget.first(:context).try(:block)
|
101
|
-
self.instance_eval &gadget.first(:context).try(:block)
|
101
|
+
self.instance_eval &(gadget.first(:context).try(:block))
|
102
102
|
else
|
103
103
|
meta_settings
|
104
104
|
end
|
@@ -133,7 +133,7 @@ module Qor
|
|
133
133
|
end
|
134
134
|
|
135
135
|
def gadget
|
136
|
-
Qor::Layout::Configuration.
|
136
|
+
Qor::Layout::Configuration.first(:gadget, name)
|
137
137
|
end
|
138
138
|
|
139
139
|
def gadget_settings
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: qor_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: qor_dsl
|