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 +5 -5
- data/lib/au_state_select/form_builder.rb +9 -2
- data/lib/au_state_select/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: e06978561d24ac84d603d937d3139e20d689547362f676b0d56c7e8d25bfd19c
|
4
|
+
data.tar.gz: 34014e26cc1d069f8e59c997a2afb152a53e7eddbec521576ef0a48738d467b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
4
|
-
|
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
|
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.
|
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:
|
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.
|
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.
|