forest_liana 1.3.20 → 1.3.21

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
  SHA1:
3
- metadata.gz: d22129c084d7e29d002d3f9eceafaa226f5adfcd
4
- data.tar.gz: b43171af7d808adcde2fe004639333ef17f546db
3
+ metadata.gz: 0631154b5d2f52c51a916cd3ad728fdc9356a359
4
+ data.tar.gz: fa067f5513ac4a7ac0462bf1df8e8dc5ab3a38d2
5
5
  SHA512:
6
- metadata.gz: 3e53ec6f00d69104392fb8bf673bbadc1e4770e310a69c42ab6c508dd6229039c998419d97cabac8d423802935a8c938dad78535446d8666f59b2575052a6f80
7
- data.tar.gz: f9b2ace7f66785970d20b753d36c580803d4db8d4b25706161179a053223121faace6128b47e95a383ca34ffacb43c2707c57323cbd1bbccf065af9151abd576
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
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "1.3.20"
2
+ VERSION = "1.3.21"
3
3
  end
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.20
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