bootswatch_rails 3.3.7.3 → 3.3.7.4
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b4b572743a1d4a3d24feb82b9ead77e2f529f9bf
|
4
|
+
data.tar.gz: 7d52efecdd75bef25cc5b58bbd79a3d858cf3146
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8133266cf893a0136cbe64349c249634cace36110b2439cbc3704660f8813064cdf49a49d33ca80a2936d929c583015f83aa8042d0f5dbd448461c8b48392d07
|
7
|
+
data.tar.gz: 84ae085f1c1f5924d08ecf35e2869457e937741c8dbd106494c1d687b602f7eb10dbf38bf7a3e3bf175337a60a3010a05969506e0c1a8442fdce7a54fb01826f
|
@@ -4,7 +4,7 @@ module BootswatchRails
|
|
4
4
|
FONT_AWESOME = "4.6.2"
|
5
5
|
DATATABLES = "1.10.12"
|
6
6
|
RESPONSIVE = "2.1.0"
|
7
|
-
VERSION = "3.3.7.
|
7
|
+
VERSION = "3.3.7.4"
|
8
8
|
|
9
9
|
THEMES = [:cerulean, :cosmo, :custom, :cyborg, :darkly, :flatly, :journal, :lumen, :paper, :readable, :sandstone, :simplex, :slate, :spacelab, :superhero, :united, :yeti]
|
10
10
|
DEFAULT = 0
|
@@ -22,7 +22,6 @@ module BootswatchRails
|
|
22
22
|
file = "app/controllers/application_controller.rb"
|
23
23
|
inject_into_file file, "\n\n private", after: /protect_from_forgery.*$/
|
24
24
|
|
25
|
-
xline = " ?@current_theme = current_user.theme if #{auth_check}"
|
26
25
|
lines = [
|
27
26
|
"",
|
28
27
|
" def default_theme",
|
@@ -31,8 +30,7 @@ module BootswatchRails
|
|
31
30
|
" helper_method :default_theme",
|
32
31
|
"",
|
33
32
|
" def current_theme",
|
34
|
-
"
|
35
|
-
xline,
|
33
|
+
" @current_theme = current_user.theme if #{auth_check}",
|
36
34
|
" @current_theme ||= default_theme",
|
37
35
|
" end",
|
38
36
|
" helper_method :current_theme",
|