Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Commits on Sep 26, 2014
  1. @schnittchen

    cover happy path as well

    schnittchen authored
  2. @schnittchen

    added regression tests

    schnittchen authored
  3. @schnittchen

    fix typo

    schnittchen authored
Commits on Mar 24, 2014
  1. @rmm5t
Commits on Mar 10, 2014
  1. @rmm5t

    Merge branch 'rafaelgaspar-carrierwave-0.10.0' into mongoid4-and-carr…

    rmm5t authored
    …iewave0.10
    
    * rafaelgaspar-carrierwave-0.10.0:
      Ops, forgot to add the new gemfile on travis config file.
      Change gem spec to allow carrierwave 0.10.0, and create a new gemfile for carrierwave 0.9.0.
      Document#image_identifier actually should be blank and not exactly '' after removing the image.
      Update for some changes in the I18n paths for error messages in carrierwave 0.10.0.
  2. @rafaelgaspar
  3. @rafaelgaspar
Commits on Feb 18, 2014
  1. @rafaelgaspar
Commits on Aug 29, 2013
  1. @noniq

    Fix removing uploaded files in embedded documents.

    noniq authored
    Sending `remove_file = "1"` to an embedded document does not work: Mongoid won’t consider the document dirty and so `save` won’t do anything. (Note that this bug only occurs if there are no other changes to the document.)
    
    I'm not 100% sure how this relates to #95 – calling `uploader_column_will_change!` seems to suffice in this case.
Commits on Aug 13, 2013
  1. @rmm5t

    Merge pull request #64 from rmm5t/nested_attributes

    rmm5t authored
    Mongoid 3: cascade_callbacks works for save but not update_attributes
Commits on Aug 12, 2013
  1. @did

    the call to the default attribute_will_change method was not enough w…

    did authored
    …hen uploading a new file in an embedded document (#64)
Commits on Jul 9, 2013
  1. @rmm5t

    Fixed rspec-mocks deprecation warnings

    rmm5t authored
    Upped rspec dependency to ~> 2.14
Commits on May 27, 2013
  1. @rmm5t

    Fixed the build for Mongoid 4.0

    rmm5t authored
Commits on May 13, 2013
  1. @aklaiber @rmm5t

    add update image spec

    aklaiber authored rmm5t committed
  2. @aklaiber @rmm5t

    add spec for nested attribute

    aklaiber authored rmm5t committed
Commits on May 7, 2013
  1. @rmm5t

    Updated spec for readability

    rmm5t authored
    Ref #95
Commits on May 6, 2013
  1. @did
Commits on Apr 16, 2013
  1. @rmm5t
Commits on Feb 11, 2013
  1. @rmm5t

    Added Mongoid::Paranoia support

    rmm5t authored
    Mounted uploaders are kept around if the document is paranoid
Commits on Jan 15, 2013
  1. @rmm5t

    Removed extra puts in the specs

    rmm5t authored
  2. @peteonrails

    Correctly serialize JSON for two separate uplaoders on the same model.

    peteonrails authored
    1. Added two failing tests that illustrate the problem.
    2. Fixed issue by changing serializable hash to use column.to_sym instead of string interpolation (which overwrites the method definition at the time mount_uploader is called)
    3. Fix an unrelated issue that caused my tests to fail: check that options are defined before sending :[] (which nil doesn't repond to)
Commits on Dec 16, 2012
  1. @rmm5t

    Merge branch 'mongoid-3.0'

    rmm5t authored
    # By ahoward (7) and others
    # Via Ryan McGeary (2) and volmer (1)
    * mongoid-3.0:
      It works with CarrierWave 0.6 and greater
      Updated Carrierwave to version 0.7.0
      zero config
      namespacing and version bumping.
      sigh.  i am not positive about the correct default config...
      typo
      update deps
      update README.md
      teh specs pass.
      Upped mongoid dependency to 3.0.0
      Updated Mongoid's `store_in` syntax
      Switched to using Mongoid's new test connection interface
      Upped mongoid dependency to ~> 3.0.0.rc
      Bumped version in prep for Mongoid 3.0 support
    
    Conflicts:
    	README.md
Commits on Jul 27, 2012
  1. @agerlic
Commits on Jul 25, 2012
  1. @ahoward
Commits on Jul 24, 2012
  1. @ahoward

    teh specs pass.

    ahoward authored
Commits on Jun 19, 2012
  1. @rmm5t
  2. @rmm5t
  3. @rmm5t

    Upped mongoid dependency to ~> 3.0.0.rc

    rmm5t authored
    Also removed mongo and bson_ext dependencies
Commits on Apr 26, 2012
  1. @spiridonov
Commits on Apr 13, 2012
  1. @rmm5t

    Merge pull-request #34 from escobera/master

    rmm5t authored
    * https://github.com/escobera/carrierwave-mongoid:
      Adding tests to the to_json serialization
      Adding serializable_hash
Commits on Apr 8, 2012
  1. @rmm5t

    Prevented double slashes when forming url [Fixes #37]

    rmm5t authored
    ...while joining grid_fs_access_url with a file's path
Commits on Mar 31, 2012
  1. @rmm5t
  2. @rmm5t
  3. @rmm5t

    Overrode Mongoid's default dirty behavior for *_changed?

    rmm5t authored
    Custom behavior for mounts now works more like ActiveRecord's dirty
    behavior. Mongoid doesn't deem an attribute as changed unless the new value is
    different than the original. Given that CarrierWave caches files before save,
    it's necessary to know that there's a pending change even though the attribute
    value itself might not reflect that yet.
    
    Fixes #23
Commits on Mar 29, 2012
  1. @rmm5t

    Merge remote-tracking branch 'piotrj/embed_one_fix' into embed_one_fix

    rmm5t authored
    * piotrj/embed_one_fix:
      Fix for embed_one documents
Something went wrong with that request. Please try again.