jsonapi-swagger 0.9.0 → 0.9.1
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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b33fbdc3abde3d3feef92bd3f18837c06aebccc8adebcc9a63c21b69e560fb83
|
|
4
|
+
data.tar.gz: adc773296ba23da06b2c8f5aef706dce4699bf1c0ed7546d8a0670acdae9eff7
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 9eb6e30c42b8c3add73d71845432cd67d1fd56836e63468236325cfcd0c142232f71acf83d9d0f7ec374304c5774259e9fe6c82acae929b5c3659612627b1507
|
|
7
|
+
data.tar.gz: 851b90447dbb4b63078c71603de74847a7b6087407afc9d3693b1e402e500011f76828a366afea080f8084118a10e5fb19c122e101b98deed200e1d973b28476
|
|
@@ -154,15 +154,15 @@ module Jsonapi
|
|
|
154
154
|
return relation.name if relation.respond_to?(:name)
|
|
155
155
|
end
|
|
156
156
|
|
|
157
|
-
def t(key, options
|
|
158
|
-
content = tt(key, options)
|
|
157
|
+
def t(key, **options)
|
|
158
|
+
content = tt(key, **options)
|
|
159
159
|
safe_encode(content)
|
|
160
160
|
end
|
|
161
161
|
|
|
162
|
-
def tt(key, options
|
|
162
|
+
def tt(key, **options)
|
|
163
163
|
options[:scope] = :jsonapi_swagger
|
|
164
164
|
options[:default] = key.to_s.humanize
|
|
165
|
-
I18n.t(key, options)
|
|
165
|
+
I18n.t(key, **options)
|
|
166
166
|
end
|
|
167
167
|
|
|
168
168
|
def safe_encode(content)
|