tramway-core 1.9.5 → 1.9.6

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: 85d2406184f1c38e83ab840441d6787c7de1942adf2ce58f07265898e8a9da99
4
- data.tar.gz: a3ab79e9c8b3b43bfaa5001bad8c3db5a57fc0fd8af218376cf8599780ec6133
3
+ metadata.gz: 848fee8743dca926b0b6d7f5e138ab4d036d0445f0ed421488b6d9486c7ee35b
4
+ data.tar.gz: f22269bf242497324516822a8bac7c205dcd1e4346a363b71559fab6cc4a6333
5
5
  SHA512:
6
- metadata.gz: a3f5af38b66f339ca1f1ed6cc1fafffbefb6f127d9950ca47d94b37c224d43766d9ac92e3856b78ddbe1a1482a6fa2224b14d48cc0b422438ca7a60d0a9c88e5
7
- data.tar.gz: 56a9640b3c873f38d225a2f836b730386005c370cc19d05dc988dc62a5477aa7d8d1b2cd78a50679007e89e7530861f0c5be6f9cd55cf44958e696cf0a9c9664
6
+ metadata.gz: 376b13caabda4e7d3a24714a4c72598e6ee8fa5c7a39ba1c96e1edc811afc6c9d52525dd027aa01ebcdf6430037c5a0d1b98acf91455c1575a75020383a989be
7
+ data.tar.gz: d7e2a4dcbdc7f26d8d86b162088de730991e81fa375b7179c92512b7e7ee3a1513823e4a1f0c31b238fd07a213f03c38fd71a2911dad49c58a0d1f66f48c81ea
@@ -105,6 +105,10 @@ class Tramway::Core::ApplicationDecorator
105
105
  end
106
106
  end
107
107
 
108
+ def yes_no(boolean_attr)
109
+ boolean_attr ? I18n.t('helpers.yes') : I18n.t('helpers.no')
110
+ end
111
+
108
112
  protected
109
113
 
110
114
  def object
@@ -14,3 +14,5 @@ ru:
14
14
  download: Скачать
15
15
  scope:
16
16
  found: Найденные
17
+ "yes": Да
18
+ "no": Нет
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module Core
3
- VERSION = '1.9.5'
3
+ VERSION = '1.9.6'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.5
4
+ version: 1.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-18 00:00:00.000000000 Z
11
+ date: 2019-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: reform-rails