back_office 0.2.0 → 0.2.1

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: 4f5973d945fd8e5a7061041fc06e2dfd59cf9b07
4
- data.tar.gz: eaaeef8494c87eec794e9042cb7403056713c86e
3
+ metadata.gz: 1e33ffdaefafa56e2a7d12995714f1dc75714613
4
+ data.tar.gz: 0f2438445fc0039122c5b921654377dd9a2a214e
5
5
  SHA512:
6
- metadata.gz: e167fb45820b38c1af60ba4b05fbaf5ccf5123fd9bb94b2e994ee685168b56fdc80ff3bf9d44cd694dfb12fd03a1b83ef3890be730c44dbcd0c9f754d4790033
7
- data.tar.gz: 1c758dcb9f969609f6232e42773cba34b69a12b59e500a274f28513b13a38a4132c9f048cb1754437258f482383fa3725cf4a206bc9da8933f6f5ea07fb110a4
6
+ metadata.gz: 16762e4036ef4c832d5a296d28d349955f41bde939d7d4fc74066b52bbf93ede39e2a8af8498295d4cac18d2bee2f93178a2a37caf084c6b977a429649cbca18
7
+ data.tar.gz: 293d2b9590010b5b5dc0863464da23c1f5d25d3c8cd546a1adcfd59d92f315a965eaabd0de98c9ee36e21a8de14f3ed16fab1892f18045b3d6768db6b57d1f81
@@ -47,7 +47,11 @@ module BackOffice
47
47
  end
48
48
 
49
49
  def policy
50
- @policy ||= Policy.new(current_user)
50
+ @policy ||= policy_class.new(current_user)
51
+ end
52
+
53
+ def policy_class
54
+ ApplicationPolicy
51
55
  end
52
56
 
53
57
  def resource
@@ -1,3 +1,3 @@
1
1
  module BackOffice
2
- VERSION = '0.2.0'
2
+ VERSION = '0.2.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: back_office
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gustavo Beathyate