Restore support to ruby 2.3, add ruby 2.3 to circle ci (#7935)

This replace calls of String#match? with rails Regex#match?
This follows the same idea used to keep Rails 5.2 compatible with Ruby
2.2.2 in https://github.com/rails/rails/pull/32973
이 커밋은 다음에 포함됨:
Renato "Lond" Cerqueira
2018-07-03 19:47:09 +02:00
커밋한 사람 Eugen Rochko
부모 bbbe3ed6ba
커밋 4045b50bd6
2개의 변경된 파일26개의 추가작업 그리고 1개의 파일을 삭제
+1 -1
파일 보기
@@ -28,7 +28,7 @@ module Attachmentable
self.class.attachment_definitions.each_key do |attachment_name|
attachment = send(attachment_name)
next if attachment.blank? || !attachment.content_type.match?(/image.*/) || attachment.queued_for_write[:original].blank?
next if attachment.blank? || !/image.*/.match?(attachment.content_type) || attachment.queued_for_write[:original].blank?
width, height = FastImage.size(attachment.queued_for_write[:original].path)