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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3a0aa5a3bcbd09397c6cd7815465cdfe0882045fba170ced84f6dbf59732db87
4
- data.tar.gz: 0f78f2cce168bbda0d6221d6f8ea41b143c080d97b52ad78c7193c659d1aafa7
3
+ metadata.gz: 54c0b2966934b0403a5c4a15976201652884c57d6e5a32d5b33e063a19de9bc2
4
+ data.tar.gz: d939422e59047f0f710ccb58119e6bba750a4bdc8e9c2252a6f2474b624d5032
5
5
  SHA512:
6
- metadata.gz: 035ca01e53c2d094b2174048e9a1f27f01b64e9cf12539587ac94350402b4569562e3be33322eb44f23182a88d5eb2fa68df4d8ff491ad0b6cbc95f2d2da3c09
7
- data.tar.gz: 1df2b4a3f3ba19cd4e3d2b1875cd1d58627f3ab181bdb8cf0ebf268fcec8ea8e161754ec7a1f91618dbecb71e6d8c94ee7f5163aa833444a1e616c8c066712cf
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
@@ -1,7 +1,7 @@
1
1
  !!!
2
2
  %html{style: 'background: #fff;'}
3
3
  %head
4
- %meta{:content => 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type'}
4
+ %meta{content: 'text/html; charset=UTF-8', 'http-equiv' => 'Content-Type'}
5
5
 
6
6
  %body{style: 'background: #fff;'}
7
7
  = yield
@@ -0,0 +1 @@
1
+ <%= yield %>
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.25.0'.freeze
2
+ VERSION = '2.25.2'.freeze
3
3
  end
@@ -60,7 +60,7 @@ module EffectiveResources
60
60
  end
61
61
 
62
62
  def self.mailer_layout
63
- config[:mailer_layout] || 'effective_mailer_layout'
63
+ config[:mailer_layout] || 'mailer'
64
64
  end
65
65
 
66
66
  def self.mailer_subject
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.0
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-25 00:00:00.000000000 Z
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/effective_mailer_layout.html.haml
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