Sha256: 10d509c0b326bfed34d7e06c9eba71c3a0927086595ce83e2227400b19cb4919

Contents?: true

Size: 1.06 KB

Versions: 7

Compression:

Stored size: 1.06 KB

Contents

Paperclip.options[:command_path] = case Rails.env
  when 'development' then "/usr/local/bin"  
end

if Rails.env.test?
  class Paperclip::Attachment
    def self.default_options 
      @default_options = {
        :url                    => "/system/:attachment/:id/:style/:filename",
        :path                   => ":rails_root/public:url",
        :styles                 => {},
        :only_process           => [],
        :processors             => [:thumbnail],
        :convert_options        => {},
        :source_file_options    => {},
        :default_url            => "/:attachment/:style/missing.png",
        :default_style          => :original,
        :storage                => :filesystem,
        :use_timestamp          => false,
        :whiny                  => Paperclip.options[:whiny] || Paperclip.options[:whiny_thumbnails],
        :use_default_time_zone  => true,
        :hash_digest            => "SHA1",
        :hash_data              => ":class/:attachment/:id/:style/:updated_at",
        :preserve_files         => false
      }
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
comfortable_mexican_sofa-1.5.6 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.5 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.4 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.3 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.2 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.1 config/initializers/paperclip.rb
comfortable_mexican_sofa-1.5.0 config/initializers/paperclip.rb