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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8692390c09e3355687ccd1c09125b803b44314fad79874fbaeeb0b0001035810
4
- data.tar.gz: 267e98689b2c21549b4710f8e5fbbd3d56291055bab497399a99ce258427f97d
3
+ metadata.gz: 350deb6ca3622c6d0f69405844217f74a82ad8fd84d70285273a084824eb6848
4
+ data.tar.gz: 48da7e3b7197c2962fb6c4ab148fdffea4412627a5977d791fca4a91b6e7d741
5
5
  SHA512:
6
- metadata.gz: a2942153086a3e8489bd8f6bf0264927e918ace32a9b80950224e0ff9592fbac8b2781985e9facc9da659c4dd75db27fa1d42b49f4f1add1563a2192e918c8ac
7
- data.tar.gz: 682082c51cd0606ee83c4840a55247fa40db8914e1ead288498e2338ce93cf49054363bdb7ca0b3a3939515bce3678c24d8c87ebb3ff78b0dacd250bce5928cd
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
- label = opts[:label] || effective_bootstrap_human_name(resource, plural: opts.fetch(:plural, true), prefer_model_name: true)
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
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.19.9'.freeze
2
+ VERSION = '1.19.10'.freeze
3
3
  end
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.9
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: 2024-11-16 00:00:00.000000000 Z
11
+ date: 2025-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails