thecore_ui_rails_admin 3.0.8 → 3.0.10
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: a21cf5cb664889b6398225db6b03f6eecee4b2b7a5b40be20faaaa74fc2a00b6
|
4
|
+
data.tar.gz: 0c8ddc740f438d4f92485486772f43f50eb4642f3ca49688f331c32b2442e552
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1436b2d2c1330ba34395f1e487eb8db6b2ccbfeeee25520ecea3adfa23ad692bcefe940981d3190ff6b75545f5daef963e1d190691aab6d1899cfd272f0427f2
|
7
|
+
data.tar.gz: 3f2e1dc873dfb209b3af05e6aa233e57cd66607d69c25a350c07cd051991a19df1a99fc797afe08af61ae2eda415dc928a45013660efe565215b3e5b273bd90f
|
@@ -1,7 +1,7 @@
|
|
1
1
|
Rails.application.configure do
|
2
2
|
config.after_initialize do
|
3
3
|
# Freeze more or fewer columns (col 1 = checkboxes, 2 = links/actions) for horizontal scrolling:
|
4
|
-
RailsAdmin::Config.sidescroll = {num_frozen_columns: 2}
|
4
|
+
RailsAdmin::Config.sidescroll = { num_frozen_columns: 2 }
|
5
5
|
|
6
6
|
RailsAdmin::Config.main_app_name = Proc.new { |controller| [ ((ENV["APP_NAME"].presence || Settings.app_name.presence) rescue "Thecore"), "" ] }
|
7
7
|
# Link for background Job
|
@@ -9,9 +9,8 @@ Rails.application.configure do
|
|
9
9
|
|
10
10
|
### Popular gems integration
|
11
11
|
## == Devise ==
|
12
|
-
RailsAdmin::Config.authenticate_with
|
13
|
-
|
14
|
-
end
|
12
|
+
RailsAdmin::Config.authenticate_with { warden.authenticate! scope: :user }
|
13
|
+
|
15
14
|
RailsAdmin::Config.current_user_method(&:current_user)
|
16
15
|
|
17
16
|
## == Cancan ==
|
@@ -8,10 +8,11 @@ module ThecoreUiRailsAdminActionControllerConcern
|
|
8
8
|
# For APIs, you may want to use :null_session instead.
|
9
9
|
# layout 'thecore'
|
10
10
|
puts "Protecting from Forgery with exception and prepend"
|
11
|
-
protect_from_forgery with: :exception, prepend: true
|
12
|
-
rescue_from CanCan::AccessDenied do |exception|
|
13
|
-
redirect_to main_app.root_url, alert: exception.message
|
11
|
+
protect_from_forgery with: :exception, prepend: true, except: :sign_in
|
12
|
+
rescue_from CanCan::AccessDenied do |exception|
|
13
|
+
redirect_to main_app.root_url, alert: exception.message
|
14
14
|
end
|
15
|
+
|
15
16
|
include HttpAcceptLanguage::AutoLocale
|
16
17
|
before_action :store_user_location!, if: :storable_location?
|
17
18
|
before_action :configure_permitted_parameters, if: :devise_controller?
|