effective_resources 2.36.2 → 2.36.3
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
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 193c421cf2d3da6dd5e07185f71e7b1a37d3fcf9856f0aff4b5db47e69765dc0
|
|
4
|
+
data.tar.gz: 3aa8cfeac216a782bee96aaf8058143051ecef58e619845da8e04c6779fdee28
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 943707c27e2717e7770b37a3ca6fbf33d99c2de91f73b949dac35539d21b677d82fe2944f8f0200a407501d29efe4da783f15a30dee4804e7a7839fb9f489770
|
|
7
|
+
data.tar.gz: ff13a0c8e401cdf4b9d50b5f316298e784274bfb91c134508d03afe701d812bcecdd3f75bcfeca78bc482c4efd029b8ef0ae351a91314c871519bfb55c8300cf
|
|
@@ -227,8 +227,8 @@ module EffectiveResourcesHelper
|
|
|
227
227
|
end
|
|
228
228
|
|
|
229
229
|
# Tableize attributes
|
|
230
|
-
# This is used by
|
|
231
|
-
def tableize_hash(obj, table: 'table', th: true, sub_table: 'table', sub_th: true, flatten: true)
|
|
230
|
+
# This is used by effective_logging, effective_trash, and effective_mergery
|
|
231
|
+
def tableize_hash(obj, table: 'table table-sm table-striped', th: true, sub_table: 'table', sub_th: true, flatten: true)
|
|
232
232
|
case obj
|
|
233
233
|
when Hash
|
|
234
234
|
if flatten && obj[:attributes].kind_of?(Hash)
|
data/lib/effective_resources.rb
CHANGED
|
@@ -213,7 +213,7 @@ module EffectiveResources
|
|
|
213
213
|
resource.datatable_name
|
|
214
214
|
elsif resource.respond_to?(:model_name) == false # Just a string. Fees will do this
|
|
215
215
|
value = I18n.t(resource)
|
|
216
|
-
raise StandardError.new("Missing translation: #{resource}") if value.include?(
|
|
216
|
+
raise StandardError.new("Missing translation: #{resource}") if value.include?("Missing translation:")
|
|
217
217
|
value
|
|
218
218
|
elsif attribute.blank?
|
|
219
219
|
resource.model_name.human
|
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.36.
|
|
4
|
+
version: 2.36.3
|
|
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: 2026-03-
|
|
11
|
+
date: 2026-03-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|