au_state_select 1.7 → 1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 497a572a3ae2c900cee15bd9140ebefbff5755f4
4
- data.tar.gz: 956cc65385ac851f4f1fffa636f8c86c1f7a3374
2
+ SHA256:
3
+ metadata.gz: e06978561d24ac84d603d937d3139e20d689547362f676b0d56c7e8d25bfd19c
4
+ data.tar.gz: 34014e26cc1d069f8e59c997a2afb152a53e7eddbec521576ef0a48738d467b8
5
5
  SHA512:
6
- metadata.gz: ef5649345f9c83c2df4eb581ae8d0074c1898ec6656e0b92bf477043b798782e5aeb2eac3d360cb5f8caccc81a9ced82a34be64cae22831e4e0c35161ce33847
7
- data.tar.gz: 1bf089c8a1ee74f0138b656f41de781688357862f47e46ff7f4b5b54feeb3b6e9c72b1568bb02cb248978dea646f8b807dec1b65cb976cad49d502622a15fd04
6
+ metadata.gz: 2c19a5e6bfb5a257cb01a2c0a6a32f2a1a0d08edfd2a83915edbbad9070344525421cfb2e41aaeef99760aef717ea5ff8fe8fa76df15554123a4b56c718ccc0a
7
+ data.tar.gz: 1cf2de1aa13150ce5e573b320af8914307022e2355423671c373e3236d802027c4022289d30313774ea570e4290ec9808c31890c65595e1aa008f801215d482b
@@ -1,7 +1,14 @@
1
1
  module AUStateSelect
2
2
  module FormBuilder
3
- def state_select(method, priority_countries = nil, options = {}, html_options = {})
4
- @template.state_select(@object_name, method, priority_countries, options.merge(object: @object), html_options)
3
+ def state_select(method, priority_state = nil, options = {}, html_options = {})
4
+ if Hash === priority_or_options
5
+ html_options = options
6
+ options = priority_or_options
7
+ else
8
+ options[:priority_state] = priority_or_options
9
+ end
10
+
11
+ @template.country_select(@object_name, method, objectify_options(options), @default_options.merge(html_options))
5
12
  end
6
13
  end
7
14
  end
@@ -1,3 +1,3 @@
1
1
  module AuStateSelect
2
- VERSION = "1.7"
2
+ VERSION = "1.8"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: au_state_select
3
3
  version: !ruby/object:Gem::Version
4
- version: '1.7'
4
+ version: '1.8'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Zhang
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-22 00:00:00.000000000 Z
11
+ date: 2019-08-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
78
78
  version: '0'
79
79
  requirements: []
80
80
  rubyforge_project:
81
- rubygems_version: 2.4.3
81
+ rubygems_version: 2.7.9
82
82
  signing_key:
83
83
  specification_version: 4
84
84
  summary: Provides a simple helper to get an HTML select list of Australia states.