forest_liana 2.14.4 → 2.14.5

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: bdb08c47fd2e7ffa6e7610edaec85f552a9622f1
4
- data.tar.gz: 864bb3702cb2e17b9fec6df6d969e27814c65214
3
+ metadata.gz: dfeb3e169bec5aa8770f986a7eabb6b65b1f8adb
4
+ data.tar.gz: aaacb47bcd71ac299b17ccaec324f2b6c75b5b3a
5
5
  SHA512:
6
- metadata.gz: f75171be5ceff6eb290320a4f43f151fa45c1453ae4ffcf33bbf7bc5be5c933036ed8ce22015ae96f613101f763775546d2e9eaff302593189cd33817498fdcf
7
- data.tar.gz: 7c27bcb17b91c3ededea9661f945da51b3014f5f7a875cdc72f6790a6d7a8a2be056a694195393138fd42fc64dc50fca4246db3d595424b6e9f4119373312cad
6
+ metadata.gz: 1bc39548696bbddb6c83f22e4a5e02791b2a9da51feaab55c9c168ea3c55cdecfd8153296cd8254a36821e2f7a25a7a54952ff876f276925474246337e07cbc3
7
+ data.tar.gz: 7d3b03b781b240ebc7d17410d9fab3e871060bb6ddfa3991ec397e23c7dd488d8901d9de52c41d5f5f49582d87545a3f258b864e92193a225a5e4ff64b0fac88
@@ -61,13 +61,14 @@ module ForestLiana
61
61
 
62
62
  def self.model_included?(model)
63
63
  # NOTICE: all models are included by default.
64
- return true if ForestLiana.included_models.empty? &&
65
- ForestLiana.excluded_models.empty?
64
+ return true if ForestLiana.included_models.empty? && ForestLiana.excluded_models.empty?
65
+
66
+ model_name = ForestLiana.name_for(model)
66
67
 
67
68
  if ForestLiana.included_models.any?
68
- ForestLiana.included_models.include?(model)
69
+ ForestLiana.included_models.include?(model_name)
69
70
  else
70
- ForestLiana.excluded_models.exclude?(model)
71
+ ForestLiana.excluded_models.exclude?(model_name)
71
72
  end
72
73
  end
73
74
 
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "2.14.4"
2
+ VERSION = "2.14.5"
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: 2.14.4
4
+ version: 2.14.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sandro Munda
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-12 00:00:00.000000000 Z
11
+ date: 2018-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails