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: 1b1d473b867c0b14de78c2a34c30266e3505bf91a688dfd598c5ae8e6c9ad5de
4
- data.tar.gz: 0e7ae5b16823c99c76509f5ee045525398ad7d82dbf86542fea2d33a95ab198e
3
+ metadata.gz: a21cf5cb664889b6398225db6b03f6eecee4b2b7a5b40be20faaaa74fc2a00b6
4
+ data.tar.gz: 0c8ddc740f438d4f92485486772f43f50eb4642f3ca49688f331c32b2442e552
5
5
  SHA512:
6
- metadata.gz: 0f90902ea13df6f79cfa1197635bb2224dbcd64b656979fe2256de6731e920f04abd6aa256278001ea2f0822c641a49b62608c719d28f7e6e55c105e6f333537
7
- data.tar.gz: fea3308bb6c152a4293868a38bdb5581a74476e3e1c96fb8c0c764401859f093e1a1e2d6727674ef5f7f999d3bf3287f423c851a6c34d88b7472c4c9ef25145b
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 do
13
- warden.authenticate! scope: :user
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?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thecore_ui_rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8
4
+ version: 3.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni