rails_admin_globalize_field 1.0.0 → 1.1.0

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: 10dd549fb4d3f7c1fb40606d74e72abde83d98bb2e69a8469a3e58b75fdb1fba
4
- data.tar.gz: 3da2435d555a26eece56fde13ca63182e58dba3fb7c122f5e99aec7255bf9100
3
+ metadata.gz: 5a96bab6a15c916b2f43e5dad1787d4351f75016b818bdb8a4559dc626f3d218
4
+ data.tar.gz: 1dbf100eb865ab05a7394b641e45e3ab001eb294237eb51418b07169e24e7995
5
5
  SHA512:
6
- metadata.gz: 476f247b621e109a667b5ca32e3fc705267552a3772fde1430f835012855581b8ad31d247278c5fc1b09420701e13575c82f541363a47e5599a6c92406649cbd
7
- data.tar.gz: c85334ec124d5a1ebf4de16f7a3b05a595f5eb812111a21363f95c1548b6760e70a00b531538217388f1e1f7b5934590cbc3edea529034ab9568c73d6ea680d0
6
+ metadata.gz: 6d569ffb9cba5101fac1a48e2606c4042590d40a3c86c0506ccf988d34db53466fb8b0219a1866629f409a7ea15090659a2ee137a85086cf7c6b907af5eddf4a
7
+ data.tar.gz: a4acf8ca5fd4df4e848a454449c01e590329097d49d88f52e9ee9514c1cd7054f153f70275ccd72343584e9d223d11f38c0e4bf76eac83a4f97db687ebd4ccda
@@ -2,7 +2,7 @@
2
2
  %ul.nav.nav-tabs{ :style => 'margin-top:5px' }
3
3
  - field.tabs.each do |tab|
4
4
  %li{ class: ('active' if tab.active?) }
5
- = link_to tab.locale, "#", data: { toggle: "tab", target: "##{tab.id}" }, class: ('text-danger' unless tab.valid?)
5
+ = link_to tab.label, "#", data: { toggle: "tab", target: "##{tab.id}" }, class: ('text-danger' unless tab.valid?)
6
6
 
7
7
  .tab-content
8
8
  - field.tabs.each do |tab|
@@ -14,6 +14,10 @@ module RailsAdminGlobalizeField
14
14
  ['pane', translation.model_name.param_key, locale].join('-')
15
15
  end
16
16
 
17
+ def label
18
+ @locale
19
+ end
20
+
17
21
  def active!
18
22
  @active = true
19
23
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsAdminGlobalizeField
4
- VERSION = '1.0.0'
4
+ VERSION = '1.1.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_globalize_field
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Volozhanin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-14 00:00:00.000000000 Z
11
+ date: 2019-10-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails