File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -166,15 +166,15 @@ class CardResource < ApplicationResource # rubocop:disable Metrics/ClassLength
166
166
def images ( id , face_index = nil )
167
167
url_prefix = Rails . configuration . x . printing_images . nrdb_classic_prefix
168
168
face_suffix = "-#{ face_index } " unless face_index . nil?
169
- has_narrative_image = :narrative_text . presence && ! face_index . nil?
169
+ has_narrative_image = :narrative_text . presence && face_index . nil?
170
170
image_sizes = {
171
171
'tiny' => "#{ url_prefix } /tiny/#{ id } #{ face_suffix } .jpg" ,
172
172
'small' => "#{ url_prefix } /small/#{ id } #{ face_suffix } .jpg" ,
173
173
'medium' => "#{ url_prefix } /medium/#{ id } #{ face_suffix } .jpg" ,
174
174
'large' => "#{ url_prefix } /large/#{ id } #{ face_suffix } .jpg"
175
175
}
176
176
177
- image_sizes . merge! ( 'narrative' => "#{ url_prefix } /large/#{ id } #{ face_suffix } -narrative.jpg" ) if has_narrative_image
177
+ image_sizes [ 'narrative' ] = "#{ url_prefix } /large/#{ id } #{ face_suffix } -narrative.jpg" if has_narrative_image
178
178
179
179
{
180
180
'nrdb_classic' => image_sizes
Original file line number Diff line number Diff line change @@ -182,15 +182,15 @@ class PrintingResource < ApplicationResource # rubocop:disable Metrics/ClassLeng
182
182
def images ( id , face_index = nil )
183
183
url_prefix = Rails . configuration . x . printing_images . nrdb_classic_prefix
184
184
face_suffix = "-#{ face_index } " unless face_index . nil?
185
- has_narrative_image = :narrative_text . presence && ! face_index . nil?
185
+ has_narrative_image = :narrative_text . presence && face_index . nil?
186
186
image_sizes = {
187
187
'tiny' => "#{ url_prefix } /tiny/#{ id } #{ face_suffix } .jpg" ,
188
188
'small' => "#{ url_prefix } /small/#{ id } #{ face_suffix } .jpg" ,
189
189
'medium' => "#{ url_prefix } /medium/#{ id } #{ face_suffix } .jpg" ,
190
190
'large' => "#{ url_prefix } /large/#{ id } #{ face_suffix } .jpg"
191
191
}
192
192
193
- image_sizes . merge! ( 'narrative' => "#{ url_prefix } /large/#{ id } #{ face_suffix } -narrative.jpg" ) if has_narrative_image
193
+ image_sizes [ 'narrative' ] = "#{ url_prefix } /large/#{ id } #{ face_suffix } -narrative.jpg" if has_narrative_image
194
194
195
195
{
196
196
'nrdb_classic' => image_sizes
You can’t perform that action at this time.
0 commit comments