Sha256: ddf29ce7bffd970b28491eacb8e5ce4a9a75490e224647f30a4ab1050ddab298

Contents?: true

Size: 323 Bytes

Versions: 1

Compression:

Stored size: 323 Bytes

Contents

require 'activestorage/validator/blob'
require 'activestorage/validator/version'

module ActiveStorage
  # https://github.com/rails/rails/commit/42259ce904eb2538761b32a793cbe390fb8272b7
  if Rails::VERSION::MAJOR < 6
    class Attached::One < Attached
      def blank?
        attachment.blank?
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activestorage-validator-0.1.0 lib/activestorage/validator.rb