anaf_habtm 0.0.84 → 0.0.85
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/anaf_habtm.gemspec +1 -1
- data/lib/anaf_habtm/application_helper_methods.rb +4 -3
- metadata +3 -3
data/Rakefile
CHANGED
data/anaf_habtm.gemspec
CHANGED
@@ -22,9 +22,10 @@ module AnafHabtm
|
|
22
22
|
output
|
23
23
|
end
|
24
24
|
|
25
|
-
def tfwac(f, field, controller)
|
26
|
-
|
27
|
-
|
25
|
+
def tfwac(f, field, controller, opts={})
|
26
|
+
opts["data-auto-complete"]=true
|
27
|
+
opts["data-auto-complete-url"]=eval("#{controller.to_s.underscore.tableize}_path(:format=>:json)")
|
28
|
+
f.text_field field, opts
|
28
29
|
end
|
29
30
|
end
|
30
31
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: anaf_habtm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 181
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 85
|
10
|
+
version: 0.0.85
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tyler Gannon
|