forest_liana 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a7229704c77f8cfd736612e9d87923d76da4055
4
- data.tar.gz: 5299b2f3ccc11bc872bc958a89b461cca222bc97
3
+ metadata.gz: 0453256fc69a77b31246e967c1eaf807852d4a93
4
+ data.tar.gz: 7fcb2727dc69394bd5ec9d4c4c8941e2c1bca921
5
5
  SHA512:
6
- metadata.gz: 608232dda20bd3a5adc8efe2ac3a33405277169b47bc70783292be0366478b9186f8d59567e3117c5f71ee45db111ba29e76752bee4ce4c436e55aac8763e853
7
- data.tar.gz: 1b014e096a8cef6d2273261f465e264693bf90af3d502c2927e6c835514e8c5da2d07028fc2d16260273c5fd4c0e81378de94127b638f98f2225b78a9109fcda
6
+ metadata.gz: f64d84cde5c1a64438edf863da33f881d6a4ad04205a85d6e12449ea31852c3f6b7958aad67fb21c91f1e5c09287ac0f316ae73b3c012b367b36abb375b662fc
7
+ data.tar.gz: 05907672c1a8fa59da2b960a26aa3b01d237de35c39dc5b5277e76570c8be3fac893d20cf26672ab49c941519a5bc6ab8104713f9ddd7857747004a41a133aeb
@@ -278,7 +278,11 @@ module ForestLiana
278
278
 
279
279
  def attributes_time(active_record_class)
280
280
  active_record_class.column_names.select do |column_name|
281
- active_record_class.column_types[column_name].type == :time
281
+ if Rails::VERSION::MAJOR > 4
282
+ active_record_class.column_for_attribute(column_name).type == :time
283
+ else
284
+ active_record_class.column_types[column_name].type == :time
285
+ end
282
286
  end
283
287
  end
284
288
 
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forest_liana
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-10 00:00:00.000000000 Z
11
+ date: 2016-11-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails