thecore_ui_rails_admin 3.2.4 → 3.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: 3be09c7358ff620e9bc4484792bed2199c7e3dd74e4a5d03ccf7f4f6d70d8d9f
4
- data.tar.gz: 4734782f61c0ac3578ed90f4bc00005ac9f9ca01a4ae008878d930ee034b20dd
3
+ metadata.gz: 7aaa6eceba5085c48b2aef1e43e0a275551c097957fcbd435ef70dd8049441bd
4
+ data.tar.gz: bdae0794f9ea2c360f3026202a503f581684eec584bb86e88640c532742ae94d
5
5
  SHA512:
6
- metadata.gz: 8856008e57c4c2e6b45049310568ef312505e2ccaea19f0169351df975fbc169938402ad684b5a01db9fa95604ba672002c8133f7b7a29300e74f8153e3bb141
7
- data.tar.gz: 6a5d1d5eb48f5db855a6b925d12318762e5b0481dad1a73311146a4c67118d9ae54c888fe7bb4431affb309881858c186c7ac8505e7b17709e0876da99c62d88
6
+ metadata.gz: 7e5d93c0c41af1b7fdc68c0a5bec282c963412b0ad43c24833eb5ee50ef5de3658299b1fa211c18b5c4b4e2e3eb43248a6bebc28851033de6576d2d4912407aa
7
+ data.tar.gz: 1f26044e57499a8b9cfb3876ef0a91b6539c052cf09a6b6f652e26c92d0f21a7df3e03900f23b82ae42a98813b51e1127d591e7f2cfac94e11397afcc28d03ce
@@ -2,6 +2,8 @@ module Abilities
2
2
  class ThecoreUiRailsAdmin
3
3
  include CanCan::Ability
4
4
  def initialize user
5
+ can :access, :rails_admin # grant access to rails_admin
6
+ can :read, :dashboard # grant access to the dashboard
5
7
  # No one is allowed to add or destroy settings
6
8
  # just list or edit existing
7
9
  cannot [:create, :destroy, :show], ThecoreSettings::Setting
@@ -1,5 +1,6 @@
1
1
  Rails.application.configure do
2
2
  config.after_initialize do
3
+ RailsAdmin::ApplicationController.send(:include, ConcernCommonApplicationController)
3
4
  RailsAdmin::ApplicationController.send(:include, ConcernRAApplicationController)
4
5
  ## Rails Admin
5
6
  ### More at https://github.com/sferik/rails_admin/wiki/Base-configuration
@@ -1,3 +1,3 @@
1
1
  module ThecoreUiRailsAdmin
2
- VERSION = "3.2.4".freeze
2
+ VERSION = "3.2.6".freeze
3
3
  end
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.2.4
4
+ version: 3.2.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriele Tassoni
@@ -90,12 +90,12 @@ files:
90
90
  - config/initializers/after_initialize.rb
91
91
  - config/initializers/assets.rb
92
92
  - config/initializers/concern_action.rb
93
- - config/initializers/concern_application_controller.rb
94
93
  - config/initializers/concern_bulk_delete.rb
95
94
  - config/initializers/concern_export.rb
96
95
  - config/initializers/concern_permission.rb
97
96
  - config/initializers/concern_permission_role.rb
98
97
  - config/initializers/concern_predicate.rb
98
+ - config/initializers/concern_r_a_application_controller.rb
99
99
  - config/initializers/concern_role.rb
100
100
  - config/initializers/concern_role_user.rb
101
101
  - config/initializers/concern_settings.rb