anaf_habtm 0.0.84 → 0.0.85

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rake'
2
2
  require 'rake/testtask'
3
3
  require 'rake/rdoctask'
4
4
 
5
- VERSION = "0.0.84"
5
+ VERSION = "0.0.85"
6
6
 
7
7
  desc 'Default: run unit tests.'
8
8
  task :default => :test
data/anaf_habtm.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{anaf_habtm}
8
- s.version = "0.0.84"
8
+ s.version = "0.0.85"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tyler Gannon"]
@@ -22,9 +22,10 @@ module AnafHabtm
22
22
  output
23
23
  end
24
24
 
25
- def tfwac(f, field, controller)
26
- f.text_field field, "data-auto-complete"=>true,
27
- "data-auto-complete-url"=> eval("#{controller.to_s.underscore.tableize}_path(:format=>:json)")
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: 183
4
+ hash: 181
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 84
10
- version: 0.0.84
9
+ - 85
10
+ version: 0.0.85
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tyler Gannon