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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7aaa6eceba5085c48b2aef1e43e0a275551c097957fcbd435ef70dd8049441bd
|
4
|
+
data.tar.gz: bdae0794f9ea2c360f3026202a503f581684eec584bb86e88640c532742ae94d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
+
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
|
File without changes
|