rails_country_select 1.0.4.pre1 → 1.0.4.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/lib/rails_country_select.rb +3 -3
- data/lib/rails_country_select/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 578510a2ed61feb119c8d1981e0109ba3eda2c44
|
4
|
+
data.tar.gz: 6b11ee6b21ed3869ea04a0c067cabb775eccf55e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c422cc7c9cfd9e1d44729b02fac76a28f410c6065c075ee66a0958db95828b85c01e874edebd51b932a6aaa80e77e92d84dfad62ebb38d1b8367d91bfaec7ea
|
7
|
+
data.tar.gz: e23252364ef286cb13a1ba209c9efd07cc57afb62f84b15bd6ef14a04004b93afc9bd8a4c4234fe58617bb237ba70a40f2524e77aa407212f6f5425c0646b56d
|
data/Gemfile
CHANGED
data/lib/rails_country_select.rb
CHANGED
@@ -3,7 +3,7 @@ require "rails_country_select/version"
|
|
3
3
|
require File.expand_path('../country_definitions', __FILE__)
|
4
4
|
|
5
5
|
#if defined?(Rails) && defined?(ActionView)
|
6
|
-
|
6
|
+
module ActionView
|
7
7
|
module Helpers
|
8
8
|
autoload :CountryHelper, 'rails_country_select/helpers/rails_country_select'
|
9
9
|
module FormOptionsHelper
|
@@ -17,7 +17,7 @@ require File.expand_path('../country_definitions', __FILE__)
|
|
17
17
|
:alpha2s => COUNTRY_ALPHA2S,
|
18
18
|
:alpha3s => COUNTRY_ALPHA3S
|
19
19
|
}
|
20
|
-
options = options.delete(:object)
|
20
|
+
#options = options.delete(:object)
|
21
21
|
select_options = potential[options[:keys]].zip(potential[options[:values]])
|
22
22
|
Tags::Select.new(object, method, self, select_options, options, html_options)
|
23
23
|
end
|
@@ -25,7 +25,7 @@ require File.expand_path('../country_definitions', __FILE__)
|
|
25
25
|
|
26
26
|
class FormBuilder
|
27
27
|
def country_select(method, options = {}, html_options = {})
|
28
|
-
@template.country_select(@object_name, method, options
|
28
|
+
@template.country_select(@object_name, method, options, html_options)
|
29
29
|
end
|
30
30
|
end
|
31
31
|
|