effective_resources 2.25.13 → 2.25.15

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: 93a5d8f22066c2ef44ed8eba67c91a57dd7d7ce8bfdf70e319ff3e0b1772e0f6
4
- data.tar.gz: 668639a5b59a80c5357c6d9a8f4d75f2fc21d40b378f15414be05bb0fdf83820
3
+ metadata.gz: bbde5a40ed9d45271d9e3d8c7c935c59dd6a8ec709106a171efa00b4039d08d6
4
+ data.tar.gz: ecb7387a65cf50a43a1d9087fde4bfb77f54a9150b0275d36ce1d9fe1c93a8d3
5
5
  SHA512:
6
- metadata.gz: be0c86a147fc2d73d803c6c275eec3d97f9b15e8428477a12c9874b1b47d40c6d97eb1a6502e4c00c584d755495c0f53c3d15e901f622077be2f87d18cd69521
7
- data.tar.gz: 772e6d5ff8c6ff7e522a0fa0d9f62765323733a1c7bb43af43c9e652781005ca8003e76fa7982f92ba96051fd28956aed13578901056c5d726ba504db8360ce3
6
+ metadata.gz: 44a87836e25135b42fad6d47c66b734574084d7cd13707380725d52280a18b6417117eb0a4f4025868c9b597c00e767bf1e2df28c75c38f418be744b422e451a
7
+ data.tar.gz: d1381999ffa3539a7a79f555b02bd7912bf786ae865d920a471a344591da29eb62962eedfe6446b607615e6199b2b06277ffd6c8622352b41530600366e60449
@@ -56,16 +56,6 @@ module Effective
56
56
 
57
57
  private
58
58
 
59
- def to_masked_select2(resource)
60
- if resource.respond_to?(:public_email)
61
- "<span>#{resource}</span> <small>#{view_context.masked_email(resource)}</small>"
62
- elsif resource.try(:email).present?
63
- "<span>#{resource}</span> <small>#{resource.email}</small>"
64
- else
65
- "<span>#{resource}</span>"
66
- end
67
- end
68
-
69
59
  def to_select2(resource)
70
60
  if resource.try(:email).present?
71
61
  "<span>#{resource}</span> <small>#{resource.email}</small>"
@@ -123,6 +123,10 @@ module ActsAsWizard
123
123
  end
124
124
 
125
125
  def wizard_step_title(step)
126
+ default_wizard_step_title(step)
127
+ end
128
+
129
+ def default_wizard_step_title(step)
126
130
  self.class.const_get(:WIZARD_STEPS).fetch(step)
127
131
  end
128
132
 
@@ -295,4 +295,8 @@ module EffectiveDeviseUser
295
295
  [:email, :public_email, :first_name, :last_name, :name]
296
296
  end
297
297
 
298
+ def to_select2
299
+ "<span>#{email_to_s}</span> <small>#{email}</small>"
300
+ end
301
+
298
302
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveResources
2
- VERSION = '2.25.13'.freeze
2
+ VERSION = '2.25.15'.freeze
3
3
  end
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.13
4
+ version: 2.25.15
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-08-28 00:00:00.000000000 Z
11
+ date: 2024-09-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails