thecore_auth_commons 3.0.13 → 3.1.0

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: b6dc9f1f0db9ab039eab12d3e36123f6dee5a48e091c9f073145644e6a51d3ba
4
- data.tar.gz: 6bafa20751078ada406524b835a66cb080e0b69996e3a1535e6fdceafb12aceb
3
+ metadata.gz: ca809778683a4861e9df36ada9e3f545472be60eb4ff104ef2d284f9ad03dc31
4
+ data.tar.gz: 06a7c2c55bb8365cc95f4b07099f3295862c6773852147a93e22e3f17a6097aa
5
5
  SHA512:
6
- metadata.gz: 91dcaf23c0f4b6afe6ead816d7200b2861dc263c5b5e5afd3487d833baf6f1201bdcec6ad9760f5ff0af0450c5b5b9af4e6ca20a0b28e7d36d9d28dda950f1e4
7
- data.tar.gz: 46dfc5d249450c5e56049c4670641533749cf2c6c7506eb4e5452e92b8492f8f2d61ef5be72f6c42953fdbcb222415f3109c030515c95e172c1909fd8fa0915f
6
+ metadata.gz: cf7b2840d9248b7184aa500288f32ba9557488451296aad914c3841ee912be87ad1fca249c094bfca5827362c97e9b0e488632c66546d3e50f9e8c6fd7f7d651
7
+ data.tar.gz: 2328fd3d524efb5b7b2039bb44ee2e5df3d72a1e4e1e0c81e72c3f8f00d21a2b12aa37e9c6bf2f4c410a646d67ab8bdacceb73b2dde48bf89e2d8149b623a3de
@@ -1,12 +1,10 @@
1
1
  Rails.application.configure do
2
2
  config.after_initialize do
3
3
  # In development be sure to load all the namespaces
4
- # in order to have working reflection and meta-programming.
4
+ # in order to have working reflection
5
5
  Zeitwerk::Loader.eager_load_all if Rails.env.development?
6
6
 
7
7
  Ability.send(:include, ThecoreAuthCommonsCanCanCanConcern)
8
8
  User.send(:include, ThecoreAuthCommonsUserConcern)
9
- # User.devise_modules.delete(:recoverable) if ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :recoverable).first.raw == "disable"
10
- # User.devise_modules.delete(:registerable) if ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.present? && ThecoreSettings::Setting.where(ns: :devise, key: :registerable).first.raw == "disable"
11
9
  end
12
10
  end
data/db/seeds.rb CHANGED
@@ -1,4 +1,8 @@
1
1
  puts "Loading ThecoreAuthCommons seeds"
2
+
3
+ # Need this since in the rake task is not aeger loaded
4
+ Zeitwerk::Loader.eager_load_all
5
+
2
6
  email = "admin@#{ENV["BASE_DOMAIN"].presence || "example.com"}"
3
7
  psswd = ENV["ADMIN_PASSWORD"].presence || "changeme"
4
8
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_auth_commons
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni