calendar_date_select 2.1.0 → 2.1.2

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: 44cc328a521fa2359c9b12295cb962b7810f0cae
4
- data.tar.gz: 5e677657d41c446eff415501fa27bff9fe055f56
3
+ metadata.gz: 053c4004a12cac6f85c04b938f7c85d785969c3e
4
+ data.tar.gz: e5479b9d0097c9eac6dd9ba545fa6fbea68adf4c
5
5
  SHA512:
6
- metadata.gz: daf12f3f9b30d5970afc3cc4f7cd00eee696fa3d237936abd6848524775a9fa7a7bb4a98741251cf45e4728b5e06d218e2faa6cddcc1d3f4d53998c61b301951
7
- data.tar.gz: d8a2c45dcd74bb5cfe3ade541e3e6d2dfbd63cb208161cee6e3d7f322cc13e6c680b069eee21fd91999ac28c2d33381d14e2439bd41d0f92d688a2f9552d5166
6
+ metadata.gz: e8aad66389640a7cfd678fb26e8b451dcc6178095abab379b4a5b9f5797ece68665bc0903fdd6e784389d76372891802646365740afd06cd6eb829bafc539fed
7
+ data.tar.gz: 8ff99729851e196c120d4c064c562975107a77401d8514ad8a78c3cec9571df040d19eb11200fe593eb8fd75baf050a4eb5df6f83069be3b169b547725b14e9f
@@ -143,12 +143,12 @@ module CalendarDateSelect::FormHelpers
143
143
  end
144
144
  end
145
145
 
146
- if defined?(ActionView::Base::InstanceTag)
147
- tag = ActionView::Helpers::InstanceTag.new(object, method, self, options.delete(:object))
148
- output = tag.to_input_field_tag((javascript_options[:hidden] || javascript_options[:embedded]) ? "hidden" : "text", options)
149
- else
146
+ if defined?(ActionView::Helpers::Tags::TextField)
150
147
  tag = ActionView::Helpers::Tags::TextField.new(object, method, self, options)
151
148
  output = tag.render
149
+ else
150
+ tag = ActionView::Helpers::InstanceTag.new(object, method, self, options.delete(:object))
151
+ output = tag.to_input_field_tag((javascript_options[:hidden] || javascript_options[:embedded]) ? "hidden" : "text", options)
152
152
  end
153
153
 
154
154
  calendar_date_select_output(
@@ -1,3 +1,3 @@
1
1
  module CalendarDateSelect
2
- VERSION = "2.1.0"
2
+ VERSION = "2.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: calendar_date_select
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shih-gian Lee
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2015-08-31 00:00:00.000000000 Z
15
+ date: 2015-09-20 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: rails