pluggable_js 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/pluggable_js/helpers.rb +2 -2
- data/lib/pluggable_js/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5562c201846d6f7300763ae176e9419888c3d31d
|
4
|
+
data.tar.gz: 5aa02bbfdaefb4af6476049965a0bd89819a0c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f0c88cbf4c76faca4f8ceab301ae0e75ae25852952295e6a787c4fd0f65030e2ceeecaa3de38499b8f9345e2e6087b2d48f2495e55c9bf9478cd904c0a16a97
|
7
|
+
data.tar.gz: 123d78a1fc300758f3463741e509b88d2d40e9fcb5a4498812ec814cd6c2c8396cdd7f98b04112fd3b8aef2afdb12f1ee24437fcd5fa423aaab5575bb0efc768
|
data/CHANGELOG.md
CHANGED
data/lib/pluggable_js/helpers.rb
CHANGED
@@ -12,8 +12,8 @@ module PluggableJs
|
|
12
12
|
object = controller.classify
|
13
13
|
|
14
14
|
javascript_tag "jQuery(function() {
|
15
|
-
if (typeof(#{object}) == 'object' && typeof(#{object}
|
16
|
-
return #{object}
|
15
|
+
if (typeof(#{object}) == 'object' && typeof(#{object}['#{action}']) == 'function') {
|
16
|
+
return #{object}['#{action}']();
|
17
17
|
}
|
18
18
|
});"
|
19
19
|
end
|
data/lib/pluggable_js/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pluggable_js
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Andrey Peresleguine
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-
|
11
|
+
date: 2013-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-rails
|