forest_liana 1.3.20 → 1.3.21
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/forest_liana/actions_controller.rb +15 -0
- data/lib/forest_liana/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0631154b5d2f52c51a916cd3ad728fdc9356a359
|
4
|
+
data.tar.gz: fa067f5513ac4a7ac0462bf1df8e8dc5ab3a38d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f08a9c02b00ef1e75a8b07c6636bb1ceb820b44bfb47831f7e0cbfcca677fc6f5e033ee9646d2af1fd5e6ab2649ab3cfd926ae913e4bb1e44220223faee8fcf
|
7
|
+
data.tar.gz: 668131e8d880f4f9931565f9145d86ae7c786314d7d73ede569260ca57692a5344c92e81d8bcc51bc26f63f9cf46c01a0ab3b68a136bfdc7f48a7bd0e0752595
|
@@ -0,0 +1,15 @@
|
|
1
|
+
module ForestLiana
|
2
|
+
class ActionsController < ForestLiana::ApplicationController
|
3
|
+
after_action :log_activities
|
4
|
+
|
5
|
+
def log_activities
|
6
|
+
params[:data][:attributes][:ids].each do |record_id|
|
7
|
+
collection = params[:data][:attributes][:collection_name]
|
8
|
+
action_name = "triggered the action \"#{params[:action].capitalize}\""
|
9
|
+
ActivityLogger.new.perform(current_user, action_name, collection,
|
10
|
+
record_id)
|
11
|
+
end
|
12
|
+
true
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.21
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- app/assets/javascripts/forest_liana/application.js
|
137
137
|
- app/assets/stylesheets/forest_liana/application.css
|
138
138
|
- app/assets/stylesheets/scaffold.css
|
139
|
+
- app/controllers/forest_liana/actions_controller.rb
|
139
140
|
- app/controllers/forest_liana/apimaps_controller.rb
|
140
141
|
- app/controllers/forest_liana/application_controller.rb
|
141
142
|
- app/controllers/forest_liana/associations_controller.rb
|