Permalink
Commits on Jun 3, 2014
  1. Fix gemspec.

    Manfred committed Jun 3, 2014
  2. Merge branch 'v2'

    Conflicts:
    	Rakefile
    	attachment-san.gemspec
    	lib/attachment_san.rb
    	lib/attachment_san/mime_types.rb
    Manfred committed Jun 3, 2014
  3. 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.
    Manfred committed Jun 3, 2014
  4. Generate Gemfile.lock.

    Manfred committed Jun 3, 2014
  5. 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.
    Manfred committed Jun 3, 2014
  6. 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.
    Manfred committed Jun 3, 2014
  7. Only try upload when there is an original file.

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

    It's not a slow operation and can only make problems in the future.
    Manfred committed Jun 3, 2014
  9. 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.
    Manfred committed Jun 3, 2014
  10. 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.
    Manfred committed Jun 3, 2014
  11. Switch to Peck in test helper.

    Manfred committed Jun 3, 2014
  12. Rename the test schema file.

    Manfred committed Jun 3, 2014
Commits on Apr 30, 2014
Commits on Apr 24, 2014
Commits on Apr 22, 2014
Commits on Apr 16, 2014
Commits on Apr 15, 2014
  1. Add gemspec

    jeffkreeftmeijer committed Apr 15, 2014
  2. Remove Nap gem tasks

    jeffkreeftmeijer committed Apr 15, 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