taiwan_city_dists_helper 0.87 → 0.88
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +13 -5
- data/lib/taiwan_city_dists_helper/helper.rb +6 -6
- data/lib/taiwan_city_dists_helper/version.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NzFjMmZjOWZkNzZiMjJjZWI2NTFkNmYyZDUxMjQwZDJiNDhhZTgwNg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YmI3M2NmYjU1NTNiODMyMDQ1NWRlNGU0ZTk5NDdlMjYwODY5OWZjNQ==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
ZjJlYjRlYzE4OWVkMjJkODAxN2ZjZTZiYTgyN2RkNTkxMWEwZGMxOTk1MTg1
|
10
|
+
NzUwZDFhNTlhNDE2YjA1OTAwNjIyN2M5MDRkOGY2MGE4M2MyYzMwNWE0MzEw
|
11
|
+
OGRhYmU4YmEzOGY2NmQzNDM1ZTIzM2M1NTQ5ZDQzY2ZlNDkwMjM=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
ZTllYmE5NTZhNzYyMGIwY2QzNzYzYWJhODhiMjQ1ZTQ1NDgxOTVjNWI3ZWEy
|
14
|
+
ZjE3NDNhN2E2MTRiNmUzYWU5MzU1ZjZiMWY4ZTNmOWIxOTcyZDczNDA4Mzgw
|
15
|
+
ZmE2M2RjYzY0ZjllMTljZDM4NWYwZTljY2YyNGE0YmU2ZDRmZDY=
|
@@ -1,15 +1,15 @@
|
|
1
1
|
module TaiwanCityDistsHelper
|
2
2
|
module Helper
|
3
|
-
def render_city_select(f, cities, blank=false)
|
4
|
-
f.collection_select
|
3
|
+
def render_city_select(f, cities, blank=false, html_options = {})
|
4
|
+
f.collection_select(:city_id, cities, :id, :name, include_blank: blank, html_options)
|
5
5
|
end
|
6
6
|
|
7
|
-
def render_grouped_dist_select(f, cities, blank=false)
|
8
|
-
f.grouped_collection_select
|
7
|
+
def render_grouped_dist_select(f, cities, blank=false, html_options = {})
|
8
|
+
f.grouped_collection_select(:dist_id, cities, :dists, :name, :id, :name, include_blank: blank, html_options)
|
9
9
|
end
|
10
10
|
|
11
|
-
def render_dist_select(f, dists, blank=false)
|
12
|
-
f.collection_select
|
11
|
+
def render_dist_select(f, dists, blank=false, html_options = {})
|
12
|
+
f.collection_select(:dist_id, dists, :id, :name, include_blank: blank, html_options)
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: taiwan_city_dists_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '0.
|
4
|
+
version: '0.88'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- unayung
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-08-
|
11
|
+
date: 2014-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ! '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ! '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
description: Generate Taiwan cities and dists model and provide dynamic select box
|
@@ -32,7 +32,7 @@ executables: []
|
|
32
32
|
extensions: []
|
33
33
|
extra_rdoc_files: []
|
34
34
|
files:
|
35
|
-
-
|
35
|
+
- .gitignore
|
36
36
|
- Gemfile
|
37
37
|
- LICENSE.txt
|
38
38
|
- README.md
|
@@ -57,12 +57,12 @@ require_paths:
|
|
57
57
|
- lib
|
58
58
|
required_ruby_version: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
|
-
- -
|
60
|
+
- - ! '>='
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '0'
|
63
63
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
|
-
- -
|
65
|
+
- - ! '>='
|
66
66
|
- !ruby/object:Gem::Version
|
67
67
|
version: '0'
|
68
68
|
requirements: []
|