Commits on Jun 3, 2014
  1. Merge pull request #1 from Fingertips/v2

    Merge work
    committed Jun 3, 2014
  2. We can't File.exist?(UploadedFile).

    When trying to check if a ActionDispatch::Http::UploadedFile we need to
    explicitly call #path on it to make it work.
    committed Jun 3, 2014
  3. Generate Gemfile.lock.

    committed Jun 3, 2014
  4. Set polymorphic source for all attachments.

    In the tests we need to set the polymorphic source for all attachments or Rails
    will try to find the foreign key.
    committed Jun 3, 2014
  5. Fix tests for difference with Peck.

    Peck has some assertions which work a little bit different from test/spec so we
    need to make some changes here and there.
    committed Jun 3, 2014
  6. Only try upload when there is an original file.

    When someone tries to create assets without an upload we don't want it to
    committed Jun 3, 2014
  7. Don't memoize filename methods.

    It's not a slow operation and can only make problems in the future.
    committed Jun 3, 2014
  8. Add support for instrumentation.

    Adds an instrument for attachement_san.process_variant and .process_original.
    This allows you to catch these events and log them in your Rails app if wanted.
    committed Jun 3, 2014
  9. Don't use #class_method for attachment options.

    For some reason defining the global attachment options as a class_variable mis-
    behaves on Rails 4.1. Because the options are copied over to subclasses when
    defining them anyway we use a regular class accessor.
    committed Jun 3, 2014
  10. Switch to Peck in test helper.

    committed Jun 3, 2014
  11. Rename the test schema file.

    committed Jun 3, 2014
Commits on Apr 30, 2014
Commits on Apr 24, 2014
Commits on Apr 22, 2014
Commits on Dec 15, 2009
  1. More docs...

    alloy committed Dec 15, 2009
Commits on Dec 14, 2009
  1. Started writing docs…

    alloy committed Dec 14, 2009
Commits on Nov 25, 2009
  1. Any options given to has_attachment(s) that matches MODEL_OPTIONS wil…

    …l be merged on the attachment model subclasses's attachment_san_options.
    Drops support for defining variants with an Array for now.
    alloy committed Nov 25, 2009
  2. Oops, forgot to add the test

    alloy committed Nov 25, 2009
  3. Refactored a bit

    alloy committed Nov 25, 2009
  4. Made tests green.

    alloy committed Nov 25, 2009