rhino_project_core 0.20.0.beta.98 → 0.20.0.beta.101
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: 2ad207c70d958d75348b9f0a989112a11570b04a53f7a50d8b74406f324bc863
|
4
|
+
data.tar.gz: 1333b269c16c45c57f0140b845cadbcb336cd65d7f867b13abf6133c9c531959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 675062cb904f10de57b960ee43f597ef25e1fdadf322942529a3890aa7901fa2db29267e9802d1ebe2781ea91d956c75dff7c5c5df91feb094cce66b588a9f2a
|
7
|
+
data.tar.gz: f97d4597e8cd6ab3c21d1eba2703eb57ee48ed2552a9049d2f1f5de3ca2f62776f30ce38cdf00fa5656ea9f698cc452cb93c9c7075437be0bde27575d30020b1
|
@@ -0,0 +1,25 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Rhino
|
4
|
+
module Resource
|
5
|
+
module ActiveRecordExtension
|
6
|
+
module SuperAdmin
|
7
|
+
extend ActiveSupport::Concern
|
8
|
+
|
9
|
+
class_methods do
|
10
|
+
def ransackable_attributes(_auth_object = nil)
|
11
|
+
authorizable_ransackable_attributes & read_properties
|
12
|
+
end
|
13
|
+
|
14
|
+
def ransackable_associations(_auth_object = nil)
|
15
|
+
authorizable_ransackable_associations & references
|
16
|
+
end
|
17
|
+
|
18
|
+
def ransackable_filters(auth_object = nil)
|
19
|
+
ransackable_attributes(auth_object) + ransackable_associations
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -8,6 +8,7 @@ require_relative 'active_record_extension/routing'
|
|
8
8
|
require_relative 'active_record_extension/params'
|
9
9
|
require_relative 'active_record_extension/serialization'
|
10
10
|
require_relative 'active_record_extension/search'
|
11
|
+
require_relative 'active_record_extension/super_admin'
|
11
12
|
|
12
13
|
module Rhino
|
13
14
|
module Resource
|
@@ -25,6 +26,7 @@ module Rhino
|
|
25
26
|
include Rhino::Resource::ActiveRecordExtension::Params
|
26
27
|
include Rhino::Resource::ActiveRecordExtension::Serialization
|
27
28
|
include Rhino::Resource::ActiveRecordExtension::Search
|
29
|
+
include Rhino::Resource::ActiveRecordExtension::SuperAdmin
|
28
30
|
end
|
29
31
|
end
|
30
32
|
end
|
data/lib/rhino/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rhino_project_core
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.20.0.beta.
|
4
|
+
version: 0.20.0.beta.101
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JP Rosevear
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-07-
|
11
|
+
date: 2024-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -36,28 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - '='
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: 2.
|
39
|
+
version: 3.2.2
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - '='
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 2.
|
46
|
+
version: 3.2.2
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: acts-as-taggable-on
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - '='
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version:
|
53
|
+
version: 10.0.0
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - '='
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version:
|
60
|
+
version: 10.0.0
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: analytics-ruby
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -473,6 +473,7 @@ files:
|
|
473
473
|
- lib/rhino/resource/active_record_extension/routing.rb
|
474
474
|
- lib/rhino/resource/active_record_extension/search.rb
|
475
475
|
- lib/rhino/resource/active_record_extension/serialization.rb
|
476
|
+
- lib/rhino/resource/active_record_extension/super_admin.rb
|
476
477
|
- lib/rhino/resource/active_record_tree.rb
|
477
478
|
- lib/rhino/resource/active_storage_extension.rb
|
478
479
|
- lib/rhino/resource/describe.rb
|