rails_javascript_helpers 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
|
|
1
|
-
|
2
1
|
module RailsJavaScriptHelpers
|
3
2
|
|
3
|
+
include ActionView::Helpers::JavaScriptHelper
|
4
|
+
|
4
5
|
# arg:: Object
|
5
6
|
# Does a simple transition on types from Ruby to Javascript.
|
6
7
|
def format_type_to_js(arg)
|
7
|
-
@klass ||= Class.new.extend(ActionView::Helpers::JavaScriptHelper)
|
8
8
|
case arg
|
9
9
|
when Array
|
10
10
|
"[#{arg.map{|value| format_type_to_js(value)}.join(',')}]"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_javascript_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 1
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 1.5.
|
9
|
+
- 1
|
10
|
+
version: 1.5.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Chris Roberts
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date:
|
18
|
+
date: 2012-01-10 00:00:00 -08:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|