Sha256: 32378f37d4129b077022c22bafc7e7f6b91626acaf29232545e5b35a4126f16e

Contents?: true

Size: 289 Bytes

Versions: 7

Compression:

Stored size: 289 Bytes

Contents

module UpdateRequest
  class UpdatedFile < ActiveRecord::Base
    include Paperclip::Glue

    belongs_to :request

    has_attached_file :attachment

    validates :request, :attachment, :attribute_reference, presence: true

    do_not_validate_attachment_file_type :attachment
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
update_request-0.1.0 app/models/update_request/updated_file.rb
update_request-0.0.6 app/models/update_request/updated_file.rb
update_request-0.0.5 app/models/update_request/updated_file.rb
update_request-0.0.4 app/models/update_request/updated_file.rb
update_request-0.0.3 app/models/update_request/updated_file.rb
update_request-0.0.2 app/models/update_request/updated_file.rb
update_request-0.0.1 app/models/update_request/updated_file.rb