thecore_print_commons 2.0.1 → 2.0.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: 2b4a79a5bcb24f16e537258ceacc9dc1d17aa5d1c306aeb7bce3f055092c170e
4
- data.tar.gz: ec8ae89d59b18ee4f57e86fcc349963ec60389884f5d8400b32ba48ccab4596b
3
+ metadata.gz: c4065a9ec93426a47e373bcf57a49377e25323430e7996b67276952bae77d563
4
+ data.tar.gz: 2e18356d5b692897f63cf0c14f641752c266b2251129671e17ccd5c94eaddc40
5
5
  SHA512:
6
- metadata.gz: 4b598cba3b478154bf72c7a2e18ad7c39be3c9d9df354a5792dcea06ad883fa67a02b092a6f0509390b34bb021ca53f48388c7a13e0661755af7c5c3034bad69
7
- data.tar.gz: 3d2599e4122a9f0c0d332412e307bd9aed27225d5f7f7b84373d7879b9e333104481361e5e86c040becb06fea1a6a7f2e3c946ec8a53e7a3abfc73dc8d48531c
6
+ metadata.gz: 84829069ec99268d25686bc3370c12d0d3c0f32ac432d03cbf3d2ebdbb42307abfe13e5d6f9c6a480d02022c00d7da1a56bbbf2eeccccd3b916fbe58fc84e543
7
+ data.tar.gz: 31ac6d8c77d4bce88e26f8fde0489878ce208fe3d59131859fdbef66bf01b221b5d1fbdd3608252fd2655e9935051e0df2b52920d4c899c189ee74521569bf8d
@@ -1,10 +1,7 @@
1
-
2
- require 'active_support/concern'
3
-
4
- module ThecorePrintCommonAbilitiesConcern
5
- extend ActiveSupport::Concern
6
- included do
7
- def thecore_print_commons_abilities user
1
+ module Abilities
2
+ class ThecorePrintCommon
3
+ include CanCan::Ability
4
+ def initialize user
8
5
  if user
9
6
  # if the user is logged in, it can do certain tasks regardless his role
10
7
  if user.admin?
@@ -19,5 +16,5 @@ module ThecorePrintCommonAbilitiesConcern
19
16
  end
20
17
  end
21
18
 
22
- # include the extension
23
- TheCoreAbilities.send(:include, ThecorePrintCommonAbilitiesConcern)
19
+ # # include the extension
20
+ # TheCoreAbilities.send(:include, ThecorePrintCommonAbilitiesConcern)
@@ -1,3 +1,3 @@
1
1
  module ThecorePrintCommons
2
- VERSION = '2.0.1'.freeze
2
+ VERSION = '2.0.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_print_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni