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: 585f0409fcd000b13a8767e354a078abb007e9f5
4
- data.tar.gz: 5d991c15e9d5435000178bc7579abf1b6cfbd98f
3
+ metadata.gz: fefb85acdd99516566d4e517125c34d2743d12c1
4
+ data.tar.gz: b5787f099c27e10fa229bccb6acf1f44be2a6bb9
5
5
  SHA512:
6
- metadata.gz: 4c5139d0b9bac2b6551ae94c095167824aa62a758a4bf6295454c9d156cffbf2afbc13a2dbbc77011c4b1cd10e7cc337de6485a367f11f71de5cdacb713df744
7
- data.tar.gz: fdc7f1cf9fbbbead528e83fbe9c1fa67ddcd2d865b264c42c481ff95b9e82d37565c3db38bc3850b4804b55b4e1d14d5f6be96e822b7b257a81183d660111d82
6
+ metadata.gz: 10b467dcc2015cb5376092e54a0393816b0b6bf4e34c08e68d6e18b5ca97dcb4be2fbe915aa9348ca6291bca56f5e9fd5ccdb7165f725f865c2ac91c8a67d4c3
7
+ data.tar.gz: 6fffec1e6b1897dcdeb53be0fb70f1704850ed212db7c38fc96b2374eec0c5e4daa21a386bd3492815f375b81311ddaf8fc55f95ea5f142309808631a3ce2179
@@ -1,7 +1,7 @@
1
1
  module ActionView
2
2
  module Helpers
3
3
  module AutoTagHelper
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -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.0
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-03 00:00:00.000000000 Z
11
+ date: 2015-08-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler