Commit Graph

12 Commits

Author SHA1 Message Date
Mehdi Lahmam f4501394b9 Remove UTF-8 magic comments from all the Ruby files
Ruby 2 made UTF-8 the default encoding, which make magic comments
omissible.
2016-01-02 16:38:59 +01:00
robovirtuoso dcb65a90f4 Add support for custom Paperclip mappings
Paperclip supports custom interpolations in images' paths. In order to
ease transition into CarrierWave, support the same functionality with the
`Paperclip::Compatibility` module.

The public api is similar to Paperclip's

```ruby
class CustomUploader < CarrierWave::Uploader::Base
  include CarrierWave::Compatibility::Paperclip

  interpolate :some_method do |custom, style|
    custom.model.some_method
  end
end
```

This is accomplished by appending the desired functionality into
`CarrierWave::Compatibility::Paperclip#mappings`
2013-11-26 15:37:38 -06:00
Mari Carmen Gutiérrez 460445859b Fix paperclip compatibility mappings 2011-03-10 09:37:36 +00:00
Trevor Turk b71326404b Remove whitespace 2011-02-18 10:56:57 +00:00
Jonas Nicklas 652ec4a88d Possibly fix issues with all mappings being called
This fixes a problem in the interaction between
the Paperclip compat module and mongoid.

See: http://groups.google.com/group/carrierwave/browse_thread/thread/a061ba8aa16688b6
2010-03-22 22:44:54 +00:00
Jonas Nicklas 97aa5bf5b8 improved the configuration (per uploader config) 2009-09-22 22:03:59 +02:00
Jonas Nicklas 50ce9f0909 the `public` option has been renamed `root`
and the old `root` option was removed. This was
done to improve the consistency of the interface
and the ambiguity between the two methods.
2009-09-01 23:35:30 +02:00
Jonas Nicklas 957b2b568f All files are utf-8 encoded 2009-07-18 14:16:43 +02:00
Jonas Nicklas 4c2aa5d872 documentation fix 2009-06-20 16:01:13 +02:00
Jonas Nicklas d6890b88cf Back to inheritance.
Allows us to work with Base class better.
2009-05-10 19:07:23 +02:00
Jonas Nicklas a77790ff65 A star is born! 2009-05-05 16:23:25 +02:00
Jonas Nicklas 7b9b498405 Added Paperclip compatibility mode 2009-05-03 01:06:33 +02:00