File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -160,4 +160,20 @@ class CardResource < ApplicationResource # rubocop:disable Metrics/ClassLength
160
160
end
161
161
162
162
many_to_many :card_pools
163
+
164
+ private
165
+
166
+ def images ( id , face_index = nil )
167
+ url_prefix = Rails . configuration . x . printing_images . nrdb_classic_prefix
168
+ face_suffix = "-#{ face_index } " unless face_index . nil?
169
+ {
170
+ 'nrdb_classic' => {
171
+ 'tiny' => "#{ url_prefix } /tiny/#{ id } #{ face_suffix } .jpg" ,
172
+ 'small' => "#{ url_prefix } /small/#{ id } #{ face_suffix } .jpg" ,
173
+ 'medium' => "#{ url_prefix } /medium/#{ id } #{ face_suffix } .jpg" ,
174
+ 'large' => "#{ url_prefix } /large/#{ id } #{ face_suffix } .jpg" ,
175
+ 'narrative' => "#{ url_prefix } /large/#{ id } #{ face_suffix } -narrative.jpg"
176
+ }
177
+ }
178
+ end
163
179
end
You can’t perform that action at this time.
0 commit comments