panda_pal 5.4.2 → 5.4.3
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: b038d3fd4f84638f9417835e011bebc4ea9840dbc5cde8ac3c24f1ad35481f93
|
4
|
+
data.tar.gz: 1afcd3f8d819b6bb3139e0ccd7659ed854e75b108f6f78e8c7ed2c3d9a6d22a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec23ec83ae5d5f58ed67836b1126ea4387cb2cf36da0b3f9f6d2efc7c331c7be2229e1573c17c2a6d78deea9b5ad42a4a610273b62d9ed4e27feb8f6b9881403
|
7
|
+
data.tar.gz: 90f8fbca45c8b5555a6506cc42f50bbc034caaa97554f84a0ecf06e4cf87b761b83476cfff51a80e90e6ecb33d06998275954edec50355a2db479854beca35e1
|
@@ -160,7 +160,7 @@ module PandaPal
|
|
160
160
|
private
|
161
161
|
|
162
162
|
def unschedule_tasks(new_task_keys = nil)
|
163
|
-
current_schedules = Sidekiq.get_schedule.select { |k,v| k.
|
163
|
+
current_schedules = Sidekiq.get_schedule.select { |k,v| k.start_with?("org:#{name}-") }
|
164
164
|
del_tasks = current_schedules.keys
|
165
165
|
del_tasks -= new_task_keys if new_task_keys
|
166
166
|
del_tasks.each do |k|
|
@@ -12,7 +12,7 @@ end
|
|
12
12
|
Rails.application.config.middleware.use Apartment::Elevators::Generic, lambda { |request|
|
13
13
|
if match = request.path.match(/\/(?:orgs?|organizations?)\/(\d+)/)
|
14
14
|
PandaPal::Organization.find_by(id: match[1]).try(:name)
|
15
|
-
elsif request.path.
|
15
|
+
elsif request.path.start_with?('/rails/active_storage/blobs/')
|
16
16
|
PandaPal::Organization.find_by(id: request.params['organization_id']).try(:name)
|
17
17
|
end
|
18
18
|
}
|
data/lib/panda_pal.rb
CHANGED
@@ -91,7 +91,7 @@ module PandaPal
|
|
91
91
|
|
92
92
|
def self.normalize_ext_type(type)
|
93
93
|
type = type.to_s
|
94
|
-
type = "#{self.to_s}::#{type}" unless type.
|
94
|
+
type = "#{self.to_s}::#{type}" unless type.start_with?('::') || type.start_with?(self.to_s)
|
95
95
|
type
|
96
96
|
end
|
97
97
|
|
data/lib/panda_pal/version.rb
CHANGED