effective_logging 3.1.1 → 3.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4344957c306f7c50e24fe0d3f81718f16490e20cbc08be10337355c4c7ec70e
|
4
|
+
data.tar.gz: cb820069940ce334d50785382387dec7e51e4fd326efaeaa5b8b3ebcf072dbc2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe14ba483a5fe14b2cf97e8f00724068b82b595ea7d5f302d2a688bfa0e710a0d7eb835fe2818469c2522386f479964b00bec68198b9ee306bef2cd732bffdc9
|
7
|
+
data.tar.gz: 69a4ac6778ed57501732537811d23fb205cdbe72a2c6cd264c0f98c5167b4521d2220599da947eda6f72be3a2f6e8e1b19d261b1bf243077c74b90e588c014e4
|
@@ -10,11 +10,5 @@ module Admin
|
|
10
10
|
layout(config.kind_of?(Hash) ? config[:admin] : config)
|
11
11
|
end
|
12
12
|
|
13
|
-
def index
|
14
|
-
EffectiveResources.authorize!(self, :index, Effective::Log)
|
15
|
-
@datatable = EffectiveLogsDatatable.new(self)
|
16
|
-
@page_title = 'Logs'
|
17
|
-
end
|
18
|
-
|
19
13
|
end
|
20
14
|
end
|
data/config/routes.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
EffectiveLogging::Engine.routes.draw do
|
2
|
-
scope :
|
2
|
+
scope module: 'effective' do
|
3
3
|
# Create is our javascript POST event for EffectiveLogging from JS side
|
4
4
|
# The show and index routes are for user specific logs
|
5
5
|
resources :logs, only: [:create, :index, :show] do
|
@@ -11,11 +11,14 @@ module EffectiveLogging
|
|
11
11
|
return unless blob.present?
|
12
12
|
|
13
13
|
blob.attachments.each do |attachment|
|
14
|
+
next if attachment.name == 'embeds'
|
15
|
+
next if attachment.record_type == 'ActionText::RichText'
|
16
|
+
|
14
17
|
associated = attachment.record
|
15
18
|
filename = blob.filename.to_s
|
16
19
|
message = [associated.to_s, filename.to_s].uniq.join(' ')
|
17
20
|
|
18
|
-
EffectiveLogger.download(message, associated: associated, filename: filename, user: user)
|
21
|
+
EffectiveLogger.download(message, associated: associated, associated_to_s: filename, filename: filename, user: user)
|
19
22
|
end
|
20
23
|
end
|
21
24
|
|