will_toggle 0.0.1.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/view_helpers.rb +7 -3
- data/lib/will_toggle/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: ec5374cc59fe4999fbaff5aa7fbddcd6ea1baebe
|
4
|
+
data.tar.gz: 2aeb74a444061a42da77e3eb02dda0ce4becc552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b555f16b6213474981cb1f3781df2054e1ee2796ea7269b9170957d57151400485e569309c7898bcd958b66462ea7fbd941d948c3d06549c0fcb12a42ea22ece
|
7
|
+
data.tar.gz: 5c00f2042b86c036a87d38360913a97517f13600c06ef35e8be2acb6d478789de8adc02acd9e527fcf433d5c00907984bc51de3e0a56f6ec9ec503aa4f2262ea
|
data/lib/view_helpers.rb
CHANGED
@@ -38,12 +38,16 @@ module WillToggle
|
|
38
38
|
end
|
39
39
|
|
40
40
|
def get_partial(options = {})
|
41
|
-
|
42
|
-
|
41
|
+
render partial: options[:partial],
|
42
|
+
locals: options[:locals]
|
43
43
|
end
|
44
44
|
|
45
45
|
def js_call(options)
|
46
|
-
"willToggle.toggleNext('#will-toggle-#{ @@toggle_index }'
|
46
|
+
"willToggle.toggleNext(\'#will-toggle-#{ @@toggle_index }\'#{ js_options(options) });".html_safe
|
47
|
+
end
|
48
|
+
|
49
|
+
def js_options(options)
|
50
|
+
" , #{ options[:clear_data] }" if options[:clear_data]
|
47
51
|
end
|
48
52
|
end
|
49
53
|
end
|
data/lib/will_toggle/version.rb
CHANGED