thecore 1.6.10 → 1.6.13
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: becbb89374c8cab845774d54cda39301159ba843c8a5cab1190f25daebcba879
|
4
|
+
data.tar.gz: fbfdeec38785055acff942b90e9138f256095cd98610f80b8cc90b4d16c4bfa9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9123b2b66a0e298ea8f24f0d42adebcda45263391b03a4f8924de7ead1ac6d8fd123636f44a8d4c65f55f2f25492c4fdae2b772d245219c4a60fa3480de4c21a
|
7
|
+
data.tar.gz: c4cd7bc2c96b28d0fc3d687210070a2184dc1bf37cb8c443e961ddeb099c5a110afacdf48a625080ea045796ac298812173237396786ac0eb69e1b8540778253
|
data/app/models/user.rb
CHANGED
@@ -2,7 +2,7 @@ class User < ApplicationRecord
|
|
2
2
|
include RailsAdmin
|
3
3
|
# # include default devise modules. Others available are:
|
4
4
|
# :confirmable, :lockable, :timeoutable and :omniauthable
|
5
|
-
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :timeoutable
|
5
|
+
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :validatable, :timeoutable, timeout_in: 30.minutes
|
6
6
|
|
7
7
|
before_create :generate_authentication_token
|
8
8
|
|
@@ -17,7 +17,7 @@ RailsAdmin.config do |config|
|
|
17
17
|
config.current_user_method(&:current_user)
|
18
18
|
|
19
19
|
## == Cancan ==
|
20
|
-
config.authorize_with :
|
20
|
+
config.authorize_with :cancancan
|
21
21
|
|
22
22
|
## == PaperTrail ==
|
23
23
|
# config.audit_with :paper_trail, 'User', 'PaperTrail::Version' # PaperTrail >= 3.0.0
|
@@ -0,0 +1,51 @@
|
|
1
|
+
# require 'active_support/concern'
|
2
|
+
|
3
|
+
# module ThecoreActiveStorageBlobConcern
|
4
|
+
# extend ActiveSupport::Concern
|
5
|
+
|
6
|
+
# included do
|
7
|
+
# rails_admin do
|
8
|
+
# visible false
|
9
|
+
# end
|
10
|
+
# end
|
11
|
+
# end
|
12
|
+
|
13
|
+
# module ThecoreActiveStorageAttachmentConcern
|
14
|
+
# extend ActiveSupport::Concern
|
15
|
+
|
16
|
+
# included do
|
17
|
+
# rails_admin do
|
18
|
+
# visible false
|
19
|
+
# end
|
20
|
+
# end
|
21
|
+
# end
|
22
|
+
|
23
|
+
RailsAdmin.config do |config|
|
24
|
+
config.model "ActiveStorage::Blob" do
|
25
|
+
visible false
|
26
|
+
end
|
27
|
+
end
|
28
|
+
|
29
|
+
RailsAdmin.config do |config|
|
30
|
+
config.model "ActiveStorage::Attachment" do
|
31
|
+
visible false
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
RailsAdmin.config do |config|
|
36
|
+
config.model "Ckeditor::Asset" do
|
37
|
+
visible false
|
38
|
+
end
|
39
|
+
end
|
40
|
+
|
41
|
+
RailsAdmin.config do |config|
|
42
|
+
config.model "Ckeditor::AttachmentFile" do
|
43
|
+
visible false
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
RailsAdmin.config do |config|
|
48
|
+
config.model "Ckeditor::Picture" do
|
49
|
+
visible false
|
50
|
+
end
|
51
|
+
end
|
data/lib/thecore/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: thecore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Gabriele Tassoni
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -170,14 +170,14 @@ dependencies:
|
|
170
170
|
requirements:
|
171
171
|
- - "~>"
|
172
172
|
- !ruby/object:Gem::Version
|
173
|
-
version: '
|
173
|
+
version: '2.0'
|
174
174
|
type: :runtime
|
175
175
|
prerelease: false
|
176
176
|
version_requirements: !ruby/object:Gem::Requirement
|
177
177
|
requirements:
|
178
178
|
- - "~>"
|
179
179
|
- !ruby/object:Gem::Version
|
180
|
-
version: '
|
180
|
+
version: '2.0'
|
181
181
|
- !ruby/object:Gem::Dependency
|
182
182
|
name: rails_admin-i18n
|
183
183
|
requirement: !ruby/object:Gem::Requirement
|
@@ -353,6 +353,7 @@ files:
|
|
353
353
|
- app/uploaders/image_uploader.rb
|
354
354
|
- config/initializers/rails_admin.rb
|
355
355
|
- config/initializers/rails_application_config.rb
|
356
|
+
- config/initializers/thecore_active_storage_concern.rb
|
356
357
|
- config/initializers/thecore_concern.rb
|
357
358
|
- config/locales/en.activerecord.yml
|
358
359
|
- config/locales/en.contact_mailer.custom.yml
|
@@ -474,7 +475,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
474
475
|
- !ruby/object:Gem::Version
|
475
476
|
version: '0'
|
476
477
|
requirements: []
|
477
|
-
rubygems_version: 3.0.
|
478
|
+
rubygems_version: 3.0.6
|
478
479
|
signing_key:
|
479
480
|
specification_version: 4
|
480
481
|
summary: Core engine to be included in every application to provide base functionalities.
|