Sha256: 7f71680f89a1a443b03b1c778d7f48fa9fa4238d89a84d6c0a857ee3ab9295be

Contents?: true

Size: 267 Bytes

Versions: 17

Compression:

Stored size: 267 Bytes

Contents

module Symphonia
  class CommonFile < Attachment
    class_attribute :paperclip_options
    has_attached_file :attachment

    validates_attachment :attachment, presence: true, size: {in: 0..2.megabytes}
    do_not_validate_attachment_file_type :attachment
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
symphonia-3.2.4 app/models/symphonia/common_file.rb
symphonia-3.2.3 app/models/symphonia/common_file.rb
symphonia-3.2.2 app/models/symphonia/common_file.rb
symphonia-3.2.1 app/models/symphonia/common_file.rb
symphonia-3.1.5 app/models/symphonia/common_file.rb
symphonia-3.1.4 app/models/symphonia/common_file.rb
symphonia-3.1.3 app/models/symphonia/common_file.rb
symphonia-3.1.2 app/models/symphonia/common_file.rb
symphonia-3.1.1 app/models/symphonia/common_file.rb
symphonia-3.1.0 app/models/symphonia/common_file.rb
symphonia-3.0.3 app/models/symphonia/common_file.rb
symphonia-3.0.2 app/models/symphonia/common_file.rb
symphonia-2.2.1 app/models/symphonia/common_file.rb
symphonia-3.0.1 app/models/symphonia/common_file.rb
symphonia-3.0.0 app/models/symphonia/common_file.rb
symphonia-2.1.8 app/models/symphonia/common_file.rb
symphonia-2.1.7 app/models/symphonia/common_file.rb