Sha256: 75bfae52ff868257b407d471cd9c07bb6ddcb48245c4ba9d6546e67f5b859e26

Contents?: true

Size: 171 Bytes

Versions: 8

Compression:

Stored size: 171 Bytes

Contents

module AtomicCms
  class Image < Media
    validates_attachment :file, presence: true,
                                content_type: { content_type: /\Aimage/ }
  end
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
atomic_cms-0.4.0 app/models/atomic_cms/image.rb
atomic_cms-0.3.3 app/models/atomic_cms/image.rb
atomic_cms-0.3.2 app/models/atomic_cms/image.rb
atomic_cms-0.3.1 app/models/atomic_cms/image.rb
atomic_cms-0.3.0 app/models/atomic_cms/image.rb
atomic_cms-0.2.5 app/models/atomic_cms/image.rb
atomic_cms-0.2.3 app/models/atomic_cms/image.rb
atomic_cms-0.2.2 app/models/atomic_cms/image.rb