effective_resources 2.25.0 → 2.25.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/concerns/effective/crud_controller/actions.rb +0 -2
- data/app/controllers/concerns/effective/crud_controller.rb +5 -0
- data/app/views/layouts/{effective_mailer_layout.html.haml → mailer.html.haml} +1 -1
- data/app/views/layouts/mailer.text.erb +1 -0
- data/lib/effective_resources/version.rb +1 -1
- data/lib/effective_resources.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 54c0b2966934b0403a5c4a15976201652884c57d6e5a32d5b33e063a19de9bc2
|
4
|
+
data.tar.gz: d939422e59047f0f710ccb58119e6bba750a4bdc8e9c2252a6f2474b624d5032
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80a671039f17f7d3f10908051fa1476b63b809c258e41ac3ccce2554ae047f3dc7a55432c18218203385b695981326e708500b990f5e6b6f3392bf314cdf162b
|
7
|
+
data.tar.gz: 918a532aa474e74c277390644f4179dccfdf607fee10157f057a2e56b5be9b15623bed8901be944c8fb862b6a69c9e71426b52970ef7f919c377fd0f81614eec
|
@@ -109,7 +109,6 @@ module Effective
|
|
109
109
|
format.html { }
|
110
110
|
format.js { render('show', formats: :js) }
|
111
111
|
end
|
112
|
-
|
113
112
|
end
|
114
113
|
|
115
114
|
def edit
|
@@ -126,7 +125,6 @@ module Effective
|
|
126
125
|
format.html { }
|
127
126
|
format.js { render('edit', formats: :js) }
|
128
127
|
end
|
129
|
-
|
130
128
|
end
|
131
129
|
|
132
130
|
def update
|
@@ -14,6 +14,11 @@ module Effective
|
|
14
14
|
included do
|
15
15
|
define_callbacks :resource_render, :resource_before_save, :resource_after_save, :resource_after_commit, :resource_error
|
16
16
|
layout -> { resource_layout }
|
17
|
+
|
18
|
+
# For effective_logging acts_as_trackable
|
19
|
+
after_action(only: [:show], if: -> { resource.present? && resource.class.try(:acts_as_trackable?) }) do
|
20
|
+
resource.track!(user: try(:current_user), details: request.params)
|
21
|
+
end
|
17
22
|
end
|
18
23
|
|
19
24
|
module ClassMethods
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= yield %>
|
data/lib/effective_resources.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_resources
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.25.
|
4
|
+
version: 2.25.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-06-
|
11
|
+
date: 2024-06-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -262,7 +262,8 @@ files:
|
|
262
262
|
- app/views/effective/resource/_actions.html.haml
|
263
263
|
- app/views/effective/resource/_actions_dropleft.html.haml
|
264
264
|
- app/views/effective/resource/_actions_glyphicons.html.haml
|
265
|
-
- app/views/layouts/
|
265
|
+
- app/views/layouts/mailer.html.haml
|
266
|
+
- app/views/layouts/mailer.text.erb
|
266
267
|
- config/effective_resources.rb
|
267
268
|
- config/locales/effective_resources.en.yml
|
268
269
|
- config/routes.rb
|