azahara_schema 0.4.2 → 0.4.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: 2132a174a1520fef9fe4a25f2e04073be787db2c4c4038cb135b735db39bf947
4
- data.tar.gz: 538a13989702d474192aae6f700f244919bdfbf7588a113cbfae315dcdcfcb05
3
+ metadata.gz: 60243dac878c01b289535d0a95bde25b2979c64cdddc57c44d1fa581b81d2a3f
4
+ data.tar.gz: 389b30f54e0ded68009d78556601af7e3848e3df1643a77005539cbb320119ce
5
5
  SHA512:
6
- metadata.gz: 3590ecc5fbd832a860ab917552c260058873370bf07c3b9b9d3b379d1c63f066cf1570503b70bf75d6a763e4802b8b70bf8e3eee1cb795bb2c80621b25235430
7
- data.tar.gz: 5a856fcf275d30da1991ddcb36243a0759101a525483850146f26dc6e3c41ad8ccc0393eb8b7e686e5e15ed239f1e3f3bd03ab1869c0cd28a25ec6b111307985
6
+ metadata.gz: 8a296a40c227073c133f9c90e98527b67a3d4d3f18e95f2669b8dc58f7c5ce8f8cc9cb359328be43c2972faa2832421eb562a877c0574eb3fd6e58265c596c8a
7
+ data.tar.gz: 0ec3ec8b8463635c359b9dc0bf0f74fa0fb1121b44f20b6d5b655c5714e326a5a0e1760124f6938164732a16a0db2dc740299cc51075af5f8c252d023d746cc8
@@ -121,7 +121,21 @@ module AzaharaSchema
121
121
  end
122
122
 
123
123
  private
124
- delegate :l, :t, to: :template
125
124
 
125
+ def l(*args)
126
+ if template.respond_to?(:l)
127
+ template.l(*args)
128
+ else
129
+ I18n.l(*args)
130
+ end
131
+ end
132
+
133
+ def t(*args)
134
+ if template.respond_to?(:t)
135
+ template.t(*args)
136
+ else
137
+ I18n.t(*args)
138
+ end
139
+ end
126
140
  end
127
141
  end
@@ -76,6 +76,10 @@ module AzaharaSchema
76
76
  @nested_relations_depth = attributes[:relations_depth]
77
77
  end
78
78
 
79
+ def inspect
80
+ to_s
81
+ end
82
+
79
83
  def searchable_attributes
80
84
  @searchable_attributes ||= available_attributes.select{|a| a.searchable? }
81
85
  end
@@ -1,3 +1,3 @@
1
1
  module AzaharaSchema
2
- VERSION = '0.4.2'
2
+ VERSION = '0.4.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: azahara_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondřej Ezr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-11-29 00:00:00.000000000 Z
11
+ date: 2021-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails