Sha256: 63098976caf7bc52330bbc0050f9d185355f842c65412c9856e2a9734990116c

Contents?: true

Size: 296 Bytes

Versions: 10

Compression:

Stored size: 296 Bytes

Contents

class FakeModel
  attr_accessor(
    :avatar_file_name,
    :avatar_file_size,
    :avatar_updated_at,
    :avatar_content_type,
    :avatar_fingerprint,
    :id
  )

  def errors
    @errors ||= []
  end

  def run_paperclip_callbacks name, *args
  end

  def valid?
    errors.empty?
  end
end

Version data entries

10 entries across 8 versions & 2 rubygems

Version Path
solidus_backend-1.0.0.pre3 vendor/bundle/gems/paperclip-4.2.4/spec/support/fake_model.rb
solidus_backend-1.0.0.pre2 vendor/bundle/gems/paperclip-4.2.4/spec/support/fake_model.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.2/spec/support/fake_model.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.3/spec/support/fake_model.rb
solidus_backend-1.0.0.pre vendor/bundle/gems/paperclip-4.2.4/spec/support/fake_model.rb
paperclip-4.2.4 spec/support/fake_model.rb
paperclip-4.2.3 spec/support/fake_model.rb
paperclip-4.2.2 spec/support/fake_model.rb
paperclip-4.2.1 spec/support/fake_model.rb
paperclip-4.2.0 spec/support/fake_model.rb