form_angular 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/form_angular/helpers/ng_option_utils.rb +1 -1
- data/lib/form_angular/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: 0e54ef9a291a0a95cbff9d5e2d8cceaa8fd45101
|
4
|
+
data.tar.gz: 80cf7ac4b88f58d6f10442a031544dc39d140e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbadb9755862ef1e7338668ed959f45e6909fc1e2225f7da67d0d3e81ee096b0beaf36e0fc2d350c76a92bcbf7bd7356bbabd49cec456724858af1919c43d821
|
7
|
+
data.tar.gz: 9ae58d752c37816a6e32ad57c4234cfdfa4b9d7e17bde71892530ecbab5d90bf95a9dbec5968add656021927d41a5a785f0dd5f3d767930bbcbc8ee6e08eb034
|
@@ -14,7 +14,7 @@ module FormAngular
|
|
14
14
|
|
15
15
|
def build_angular_options(attribute_name, builder)
|
16
16
|
begin
|
17
|
-
names = builder.object_name.gsub(
|
17
|
+
names = builder.object_name.gsub(/\[(?<wat>[a-zA-Z][_a-zA-Z0-9]+)+\]/, '.\k<wat>').gsub("_attributes", '').split(".")
|
18
18
|
names[0] = names[0].camelize(:lower)
|
19
19
|
angular_options = {
|
20
20
|
'ng-model' => "#{names.join(".")}.#{attribute_name}",
|
data/lib/form_angular/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: form_angular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Guillaume Balaine
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-09-02 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|