spina 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of spina might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/app/models/spina/account.rb +17 -17
- data/lib/spina/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ce0f3a20b138822aa726b886e56ff3c317a1f615
|
4
|
+
data.tar.gz: 87bd0136e150c5fee8db38ad272c6c33fe496961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 063a6dcd34a0909284461709b8709c6a465d66f853348114bc39a2c1425b62505e0661affe3778b73e3f5763a93f7fae0fe6f9283d679f434cbd3254066f096d
|
7
|
+
data.tar.gz: f493921a5890c4069a0e95b386a6b30d08e92e6605b4e585c4642dfb5ad65b2387cfa085bbfa055aa7f397f595ae4b57c30dcc68ab5d022a066f56d5b5534984
|
data/app/models/spina/account.rb
CHANGED
@@ -22,6 +22,23 @@ module Spina
|
|
22
22
|
layout_part.try(:content)
|
23
23
|
end
|
24
24
|
|
25
|
+
def self.serialized_attr_accessor(*args)
|
26
|
+
args.each do |method_name|
|
27
|
+
eval "
|
28
|
+
def #{method_name}
|
29
|
+
(self.preferences || {})[:#{method_name}]
|
30
|
+
end
|
31
|
+
|
32
|
+
def #{method_name}=(value)
|
33
|
+
self.preferences ||= {}
|
34
|
+
self.preferences[:#{method_name}] = value
|
35
|
+
end
|
36
|
+
"
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
serialized_attr_accessor :google_analytics, :google_site_verification, :facebook, :twitter, :google_plus, :theme, :aviary_api_key, :aviary_language, :ngrok_address
|
41
|
+
|
25
42
|
private
|
26
43
|
|
27
44
|
def bootstrap_website
|
@@ -49,22 +66,5 @@ module Spina
|
|
49
66
|
Page.where(view_template: theme.config.view_templates.keys).update_all(active: true)
|
50
67
|
end
|
51
68
|
|
52
|
-
def self.serialized_attr_accessor(*args)
|
53
|
-
args.each do |method_name|
|
54
|
-
eval "
|
55
|
-
def #{method_name}
|
56
|
-
(self.preferences || {})[:#{method_name}]
|
57
|
-
end
|
58
|
-
|
59
|
-
def #{method_name}=(value)
|
60
|
-
self.preferences ||= {}
|
61
|
-
self.preferences[:#{method_name}] = value
|
62
|
-
end
|
63
|
-
"
|
64
|
-
end
|
65
|
-
end
|
66
|
-
|
67
|
-
serialized_attr_accessor :google_analytics, :google_site_verification, :facebook, :twitter, :google_plus, :theme, :aviary_api_key, :aviary_language, :ngrok_address
|
68
|
-
|
69
69
|
end
|
70
70
|
end
|
data/lib/spina/version.rb
CHANGED