rails_authorize 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: e8f0d5120896348f98b7f268593565d38a58b12478fdb9b622f429fcf76eaa28
4
- data.tar.gz: 163ad731aaeaaaf3d766abc3de284f65a12e1d507e2bf67a02be8a090d25cd6e
3
+ metadata.gz: 06fa5c80a26f55fe4a72a7bb46abdf3a4b02986b687f72d99270a3aa35773899
4
+ data.tar.gz: f817fbb5397b656ca7287e270d13763219e13871be2127194d2b8bbc2af9e4bc
5
5
  SHA512:
6
- metadata.gz: f2ca97240e596d0a505edda8fe402f27cc2161648a166127b84e394eb111d2562b434fb0c71b08af64b2d541071b5a8017dcfcb7a22b34fcf91599f044e74790
7
- data.tar.gz: 3ff394b863f95512dfd0ef6b9889ab8b5153ce452bff9a8c73f32573a9deca451004dda547f8c5f8255976b051e37049b958b9679749572d257d7687b9ba146d
6
+ metadata.gz: d10c16d0683504da2b6ed81b9d098dfc73f872ce09fd2a58c72685a77193c9d993a4dff8e037d1cae7d92a8462355505dd1ba48dbd7ed57d26736fc2d35d20a4
7
+ data.tar.gz: ea02a19dcc0a187bf34ec24aa608dce4f4af7fd8292e9df2d893dd265111f3910fbc2ad40afc2d03ce6eea852cb745dbcc76dbd34c30f179c9d97e0a8ff70d98
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_authorize (1.0.0)
4
+ rails_authorize (1.1.0)
5
5
  activesupport (>= 3.0.0)
6
6
 
7
7
  GEM
@@ -19,7 +19,7 @@ module RailsAuthorize
19
19
  user = options[:user] || current_user
20
20
  klass = options[:policy] || "#{target.model_name.name}Policy".constantize
21
21
 
22
- klass.new(user, target, options[:context])
22
+ klass.new(user, target, options[:context] || {})
23
23
  end
24
24
 
25
25
  ##
@@ -1,3 +1,3 @@
1
1
  module RailsAuthorize
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_authorize
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - rjurado01
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-11 00:00:00.000000000 Z
11
+ date: 2018-04-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler