We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents e425ffa + 377529f commit 12e48adCopy full SHA for 12e48ad
1 file changed
lib/generators/jsonapi/swagger/swagger_generator.rb
@@ -154,15 +154,15 @@ def relation_table_name(relation)
154
return relation.name if relation.respond_to?(:name)
155
end
156
157
- def t(key, options={})
158
- content = tt(key, options)
+ def t(key, **options)
+ content = tt(key, **options)
159
safe_encode(content)
160
161
162
- def tt(key, options={})
+ def tt(key, **options)
163
options[:scope] = :jsonapi_swagger
164
options[:default] = key.to_s.humanize
165
- I18n.t(key, options)
+ I18n.t(key, **options)
166
167
168
def safe_encode(content)
0 commit comments