thecore_backend_commons 2.2.5 → 2.2.6
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 01d347e1f796b03f40136ca428f2f893124ce75a7529b7b0d6a9e6507fe42f85
|
4
|
+
data.tar.gz: e469edb2a2a4323816b3d0e078d5112efa86f58ea52aefd9d1c0fe119fea2208
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65ee09a21ac92a8ae89bbd81d53f1180480bf196b5baa2121aafeed1bac1c4d9c5b79041cf700205e9366dec63ca866de4b185c6c52e987b370e8f7bc5cf1171
|
7
|
+
data.tar.gz: 8656f875e63d7ad644f238005edc4e08a0b38f45249d299b15156f84b7be30f7860d0ab924a8274aec5307ad21bd770e3a38d58c7a530140aab038e540b5f28c
|
@@ -11,13 +11,6 @@ Rails.application.configure do
|
|
11
11
|
# AFTER INITIALIZE Good place to load things that must have a bit of initialization
|
12
12
|
# setup on order to work (and not be overrided).
|
13
13
|
config.after_initialize do
|
14
|
-
# In development be sure to load all the namespaces
|
15
|
-
# in order to have working reflection and meta-programming.
|
16
|
-
if Rails.env.development?
|
17
|
-
Rails.configuration.eager_load_namespaces.each(&:eager_load!) if Rails.version.to_i == 5 #Rails 5
|
18
|
-
Zeitwerk::Loader.eager_load_all if Rails.version.to_i >= 6 #Rails 6
|
19
|
-
end
|
20
|
-
|
21
14
|
# include the extensions
|
22
15
|
ActiveRecord::Base.send(:include, ActiveRecordExtensions)
|
23
16
|
Integer.send(:include, FixnumConcern)
|
@@ -4,8 +4,6 @@ module ThecoreBackendCommonsUser
|
|
4
4
|
extend ActiveSupport::Concern
|
5
5
|
|
6
6
|
included do
|
7
|
-
devise :rememberable
|
8
|
-
devise :timeoutable, timeout_in: 30.minutes
|
9
7
|
validates :username, uniqueness: { case_sensitive: false }, presence: true, length: { in: 4..15 }
|
10
8
|
validates_format_of :username, with: /\A[a-zA-Z0-9]*\z/, on: :create, message: "can only contain letters and digits"
|
11
9
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore_backend_commons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-05-
|
11
|
+
date: 2020-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thecore_auth_commons
|