Sha256: 274722d2b0c69dbf20b26b52b4cc54b61e487cb1674b911904ddd0316eaf9541

Contents?: true

Size: 392 Bytes

Versions: 7

Compression:

Stored size: 392 Bytes

Contents

class ClippingImage < Asset
  include UrlUpload
  
  has_attached_file :asset, configatron.clipping.paperclip_options
  validates_attachment_presence :asset
  validates_attachment_content_type :asset, :content_type => configatron.clipping.validation_options.content_type
  validates_attachment_size :asset, :less_than => configatron.clipping.validation_options.max_size.to_i.megabytes
  
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
community_engine-2.3.1 app/models/clipping_image.rb
community_engine-2.3.0 app/models/clipping_image.rb
community_engine-2.1.0 app/models/clipping_image.rb
community_engine-2.0.0 app/models/clipping_image.rb
community_engine-2.0.0.beta3 app/models/clipping_image.rb
community_engine-2.0.0.beta2 app/models/clipping_image.rb
community_engine-2.0.0.beta1 app/models/clipping_image.rb