Sha256: 18a42f25e0044f9cc7de7bc7b09b61c9576d14f8a694f1b3fe59886ca03fd031

Contents?: true

Size: 297 Bytes

Versions: 5

Compression:

Stored size: 297 Bytes

Contents

class Payment < ActiveRecord::Base
  class AttachmentUploader < CarrierWave::Uploader::Base
    storage :file
  end

  mount_uploader :attachment, AttachmentUploader

  if ActiveRecord::VERSION::MAJOR <= 3
    # Only the comment is accessible, amount isn't
    attr_accessible :comment
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
cucumber_factory-2.5.0 spec/support/models/payment.rb
cucumber_factory-2.4.1 spec/support/models/payment.rb
cucumber_factory-2.4.0 spec/support/models/payment.rb
cucumber_factory-2.3.1 spec/support/models/payment.rb
cucumber_factory-2.3.0 spec/support/models/payment.rb