rbac_rls 0.1.2 → 0.1.3

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: 7ec44866c989046890add9f57eafc781f16a3774e54858a5f4996498fa2e96cb
4
- data.tar.gz: 1f349e1e5e4011768758345c95349984b0910d33f1652245225217fd7133a83f
3
+ metadata.gz: fb13cff5b26d29280bca5e6d39cb03d0b678b6d8a94864bba35ec1999bf432cb
4
+ data.tar.gz: c4dcdbec3c7a18d50a818ba041bf0ebe48e06133548353328ef6fadc91b57daf
5
5
  SHA512:
6
- metadata.gz: 86ab0f00de6b4291edbdc4bfb3a8b18a9430af2bd9b3043de979731c9209314be6ba05ac5f8d58f10242957c67947203addc5c8c96d428c9960618af105e8043
7
- data.tar.gz: 43438f64d3cc5ba86face84828579bc9556e5e81cf0731f0c2aba6edc04abf0cb7f877340934c1e4c86cf5c50055a184e1c6e2b4736801ec1148df60f7b2d1f6
6
+ metadata.gz: cc5662a8ca0d5f748d341d6861c7899beb512b6e306220684160b81a3e051dda3e71a4d980654406a2cc09a6d28723ad5c001c1c40bee028e5e93b334787f1cb
7
+ data.tar.gz: 6f1dd91ca3746596e1451566a703a132f15fff163af006d6b5082ed1c37382e93b661f4b72c1e5f1a51912e7e40b0d88587d448f327f99ce7e0af34192044c05
@@ -15,7 +15,7 @@ module RbacRls
15
15
  migraion_generated = system(cmd.===) if new_record?
16
16
  migraion_generated = system(cmd.===) if persisted? and database_changed? and drop_policy()
17
17
  if migraion_generated
18
- system(Settings.run_migrate_command)
18
+ system(RbacRls::Settings.run_migrate_command)
19
19
  self.migration_version = ActiveRecord::Migrator.current_version
20
20
  end
21
21
  end
@@ -44,7 +44,7 @@ class RbacRls::Permission < ApplicationRecord
44
44
 
45
45
  if RbacRls::Permission.all.map(&:table_name).exclude?(table_name) && migration_version.nil?
46
46
  cmd = "rails generate rbac_rls:custom_migration #{table_name} #{type_policies.===} #{type_options.===}"
47
- if system(cmd) && system(Settings.run_migrate_command)
47
+ if system(cmd) && system(RbacRls::Settings.run_migrate_command)
48
48
  self.migration_version = ActiveRecord::Migrator.current_version
49
49
  end
50
50
  end
@@ -1,3 +1,3 @@
1
1
  module RbacRls
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rbac_rls
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - FilipeBeserraMaia