thecore 1.7.1 → 1.7.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
  SHA256:
3
- metadata.gz: 4ce48dbc0e595f1962f34e8ee821d692016f8660894a2005e842fb2c19edbfcf
4
- data.tar.gz: b31674c73a91b29fdf531cd83b95ae98a19cdcc9352364297cb633eac82fcac6
3
+ metadata.gz: 759c35c8f5451f753112d873d94b2ca618ff8c541ed8348056d9a0a23659eb90
4
+ data.tar.gz: b7f593dfa2f6245fdec28030663321e997c6cd60712c179be9b33d61f1b6b46e
5
5
  SHA512:
6
- metadata.gz: 34e6022ac82ce72dc8582138c55118fbc5e6755807b074f49caa6949c7aad0f5c23fad1c4d41cd91a4d68e81b4e8abadb68305169b15089816627bcb9ad905a3
7
- data.tar.gz: 1298ff9576a42d7e1bb089be3ce859b70f13c870c97513aef0139b7320c60d09a3e79c07d7ef2e84cc857f272d7e0381f251638bd943267485d69f173354981b
6
+ metadata.gz: c1f39b175d0cb2549db675183da79acc600e8f3bf6e8d34fc2df494b9772cd3f9d54f256164e6d8e16124a0035a662e4fd5a7f324448b853ecbbd07cf0d3036f
7
+ data.tar.gz: 2ccae014bf185eea279241d4a64ad9ff1fef6ed2b2a7fa243d07f501bf6f50317de78ec87e9620fb5da1c6e7d24fc257c58d1e54ddb87b32db18f39981cf8028
@@ -37,11 +37,13 @@ class Ability
37
37
  # faccia il module_eval di TheCore::Abilities, aggiungendo un metodo
38
38
  # che accetta user come parametro e con dentro la definizione delle ability
39
39
  # include TheCore::Abilities
40
+ core_abilities user
40
41
  TheCoreAbilities.instance_methods(false).each do |a|
41
42
  # method(a).call(user)
42
43
  # eval("#{a} #{user}")
43
- Rails.logger.debug "LOADING ABILITIES FROM: #{a}"
44
- send(a, user)
44
+
45
+ # Rails.logger.debug "LOADING ABILITIES FROM: #{a}"
46
+ send(a, user) if a.to_s != "core_abilities"
45
47
  end
46
48
  # core_abilities user
47
49
  end
@@ -78,7 +78,7 @@ class User < ApplicationRecord
78
78
  rescue
79
79
  # single role
80
80
  # ROLES[self.roles.to_i - 1] == role
81
- Rails.logger.debug "ROLES: #{self.roles.to_s}"
81
+ # Rails.logger.debug "ROLES: #{self.roles.to_s}"
82
82
  self.roles.to_s == role.to_s
83
83
  end
84
84
  end
@@ -1,3 +1,3 @@
1
1
  module Thecore
2
- VERSION = '1.7.1'.freeze
2
+ VERSION = '1.7.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.1
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni