Skip to content

Commit a8f51e4

Browse files
committed
Update Ruby versions
1 parent 416bff5 commit a8f51e4

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ jobs:
88
matrix:
99
database: [ mysql, postgresql ]
1010
extension: [ core, dragonfly, images, pages, resources ]
11-
ruby: [ "2.7.x", "2.6.x" ]
11+
ruby: [ "2.7.2", "2.6.6" ]
1212
fail-fast: false
1313
max-parallel: 10
1414
runs-on: ubuntu-latest

images/app/presenters/refinery/admin/images/image_presenter.rb

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ def initialize(image, view_format, context)
2727
@view = view_format
2828
end
2929

30+
def self.collection(images, context)
31+
images.map { |image| new(image, context) }
32+
end
3033
def to_html(stripe=true )
3134
stripe_class = stripe ? 'on' : 'on-hover'
3235
tag.li id: "image_#{image.id}", class: stripe_class do

0 commit comments

Comments
 (0)