thecore_print_commons 0.1.4 → 0.1.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: 3b0bc42cfcd52643cc6969d1c01ee83f66b7228d
4
- data.tar.gz: a5290b56a7c9c0dfb4a786289b56a43ccb34db83
3
+ metadata.gz: d586b710ebe136ceeaf15d8139b09110df2af7cd
4
+ data.tar.gz: c8fa792fb1443c4828f41c65055d8108b8868643
5
5
  SHA512:
6
- metadata.gz: 99b0b8a85f04f109051373ae141e60d0c89d4f6855aa0a7506284836bc3cbe8670a2d527eea606f91680074c0144b3783846d29b0c11e4d12fa10d94095e063d
7
- data.tar.gz: d51fad54ac14533fd04848b0a94d3f956b3faf7d6ca1602bf09cc6f9be626c61898c2ebddbf2a366424db013138a850acbfd5be8c1ca0eff3fac8487bfbaabc2
6
+ metadata.gz: 064e4319367036679718efb43d824ba3765da93849859f90a6ba74725edbcdd5ef3fc7767bf42d8b042b2f6d0b3dcd1e38661ee019969e3aabb72a5144f4e127
7
+ data.tar.gz: 0245f765fa2df4988769045fa6cb3a803e173bf53962f896eb3303aa7113f6ec004189028b42aaede825a30593053050691d365a6e9c97aff932c46281c91dff
@@ -4,20 +4,19 @@ require 'active_support/concern'
4
4
  module ThecorePrintCommonAbilitiesConcern
5
5
  extend ActiveSupport::Concern
6
6
  included do
7
- def thecore_print_commons_abilities user
8
- if user
9
- # if the user is logged in, it can do certain tasks regardless his role
10
- if user.admin?
11
- # if the user is an admin, it can do a lot of things, usually
12
- end
7
+ def thecore_print_commons_abilities user
8
+ if user
9
+ # if the user is logged in, it can do certain tasks regardless his role
10
+ if user.admin?
11
+ # if the user is an admin, it can do a lot of things, usually
12
+ end
13
13
 
14
- if user.has_role? :role
15
- # a specific role, brings specific powers
16
- end
17
- cannot [ :create, :update, :destroy, :show, :clone ], PrintJob
14
+ if user.has_role? :role
15
+ # a specific role, brings specific powers
16
+ end
17
+ end
18
18
  end
19
19
  end
20
- end
21
20
  end
22
21
 
23
22
  # include the extension
@@ -1,3 +1,3 @@
1
1
  module ThecorePrintCommons
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.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: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni