actionview-helpers-auto_tag_helper 0.1.0 → 0.1.1
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
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fefb85acdd99516566d4e517125c34d2743d12c1
|
4
|
+
data.tar.gz: b5787f099c27e10fa229bccb6acf1f44be2a6bb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 10b467dcc2015cb5376092e54a0393816b0b6bf4e34c08e68d6e18b5ca97dcb4be2fbe915aa9348ca6291bca56f5e9fd5ccdb7165f725f865c2ac91c8a67d4c3
|
7
|
+
data.tar.gz: 6fffec1e6b1897dcdeb53be0fb70f1704850ed212db7c38fc96b2374eec0c5e4daa21a386bd3492815f375b81311ddaf8fc55f95ea5f142309808631a3ce2179
|
@@ -66,7 +66,7 @@ module ActionView
|
|
66
66
|
def auto_input_tag(sym,model,name,value)
|
67
67
|
column = model.columns_hash[sym.to_s]
|
68
68
|
type = column.type
|
69
|
-
opts = model.input_options(sym) || {}
|
69
|
+
opts = model.respond_to?(:input_options) ? model.input_options(sym) || {} : {}
|
70
70
|
reference_tag(sym,model,name,value) || boolean_tag(type,name,value) || datetime_tag(type,name,value,opts) || number_tag(type,name,value,opts) || text_tag(type,name,value,opts)
|
71
71
|
end
|
72
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: actionview-helpers-auto_tag_helper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shinjiro Itagaki
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|