bootswatch_rails 3.1.1.5 → 3.1.1.6
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: 4ae9f63e9f8d71ecbf2e2b95320441d882f8b286
|
4
|
+
data.tar.gz: 9c498f993b6e08ed6099b15a93dc2bab041dac3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 429e78d436053863c16777e9b89d8b97cabcfb4a8d0b990063f23a6daf397b09a39a4d65a94b98367a5ab432f528090ac901b1bb221b725e12d41d73231cbd73
|
7
|
+
data.tar.gz: edd88580ac39278bd9876f846e2e40d8a72eacb8764fbc0fa9f6b71153087d02ce6e4a8cb9ccdd66149fc79f4bdc6bf915aeabb08431f51bf064f991e00fb815
|
@@ -22,9 +22,15 @@ module BootswatchRails
|
|
22
22
|
"\n\n private"
|
23
23
|
end
|
24
24
|
lines = [
|
25
|
+
"",
|
26
|
+
" def default_theme",
|
27
|
+
" BootswatchRails::THEMES[BootswatchRails::DEFAULT].to_s",
|
28
|
+
" end",
|
29
|
+
" helper_method :default_theme",
|
25
30
|
"",
|
26
31
|
" def current_theme",
|
27
|
-
" @current_theme
|
32
|
+
" @current_theme = current_user if user_signed_in?",
|
33
|
+
" @current_theme ||= default_theme",
|
28
34
|
" end",
|
29
35
|
" helper_method :current_theme",
|
30
36
|
""
|