effective_bootstrap 1.19.9 → 1.19.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/effective_bootstrap_helper.rb +2 -1
- data/lib/effective_bootstrap/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 350deb6ca3622c6d0f69405844217f74a82ad8fd84d70285273a084824eb6848
|
4
|
+
data.tar.gz: 48da7e3b7197c2962fb6c4ab148fdffea4412627a5977d791fca4a91b6e7d741
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3004f447836ece871770ce69e00ed83ca219de59119edad1f6161f6fa647deb4dd19768695df3c911b6426527df48dc0cd0c5b45ba5ff3ffb6b9e175051f2324
|
7
|
+
data.tar.gz: ca607c3b9c98f202c60c24f179a572bc3d0cf51b86ee0da8842e7c74f568f9dbb9873a52aed9564eb35cc375951f6db4b0cce1beabb343681c6410ab944c1fa0
|
@@ -632,7 +632,8 @@ module EffectiveBootstrapHelper
|
|
632
632
|
|
633
633
|
def tab(resource, opts = {}, &block)
|
634
634
|
return if resource.kind_of?(Class) && !EffectiveResources.authorized?(self, :index, resource)
|
635
|
-
|
635
|
+
plural = resource.kind_of?(ActiveRecord::Base) == false
|
636
|
+
label = opts[:label] || effective_bootstrap_human_name(resource, plural: opts.fetch(:plural, plural), prefer_model_name: true)
|
636
637
|
|
637
638
|
(@_tab_labels.push(label) and return) if @_tab_mode == :validate
|
638
639
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_bootstrap
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.19.
|
4
|
+
version: 1.19.10
|
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:
|
11
|
+
date: 2025-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|