Sha256: 4bbed915c26e37a72386d2035584143e80e1a5e9c4acad75964db43a0941e616

Contents?: true

Size: 1.09 KB

Versions: 5

Compression:

Stored size: 1.09 KB

Contents

module Spud
  module Photos
    include ActiveSupport::Configurable
    require 'active_support/core_ext/numeric/bytes'
    config_accessor :photo_styles, :convert_options, :source_file_options, :galleries_enabled, :base_layout, :base_path,:s3_credentials,:storage_path,:storage_url,:paperclip_storage, :enable_full_page_caching, :page_caches_to_sweep, :max_image_upload_size
    self.photo_styles = {
      :small => '50x50#',
      :medium => '200x200#',
      :large => '400x400#'
    }
    self.convert_options = {
      :all => '-strip'
    }
    self.source_file_options = {
      :all => '-density 72'
    }
    self.galleries_enabled = false
    self.base_layout = 'application'
    self.base_path = 'photos'
    self.paperclip_storage = :filesystem
    self.s3_credentials = "#{Rails.root}/config/s3.yml"
    self.storage_path = ":rails_root/public/system/spud_photos/:id/:style/:basename.:extension"
    self.storage_url = "/system/spud_photos/:id/:style/:basename.:extension"
    self.enable_full_page_caching = false
    self.page_caches_to_sweep = []
    self.max_image_upload_size = 5.megabytes
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
tb_photos-1.0.6 lib/spud_photos/configuration.rb
tb_photos-1.1.0 lib/spud_photos/configuration.rb
tb_photos-1.1.0.beta1 lib/spud_photos/configuration.rb
tb_photos-1.0.5 lib/spud_photos/configuration.rb
tb_photos-1.0.4 lib/spud_photos/configuration.rb