Sha256: 4bbcb50ee3060503d93bd6a1025e30fac417a784566e61d9a50d965d88505c6c

Contents?: true

Size: 337 Bytes

Versions: 4

Compression:

Stored size: 337 Bytes

Contents

module SimpleImages
  # Set the maximum size allowed of uploaded images.
  mattr_accessor :image_max_size
  @@image_max_size = 5.megabytes

  # Set list of availible formats allowed for image uploads.
  mattr_accessor :image_formats_allowed
  @@image_formats_allowed = [:jpg, :jpeg, :png, :gif]

  def self.setup
    yield self
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
simple_images-0.0.4 lib/simple_images/config.rb
simple_images-0.0.3 lib/simple_images/config.rb
simple_images-0.0.2 lib/simple_images/config.rb
simple_images-0.0.1 lib/simple_images/config.rb