Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: mongoid/mongoid
...
head fork: mongoid/mongoid
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Jul 09, 2012
@durran durran Ensure id:1 is added to #first if no sorting provided. [fix #2181] d3794c1
Commits on Jul 10, 2012
@durran durran Allow naming of relations same as kernel methods.
- We simply use __send__ for existence checks now.
- [ fix #2184 ]
f88a787
@durran durran Move dev dependencies to Gemfile.
- This way we have a bit more control over the environment. For example
  ffi is currently not building on travis, but we actually dont need it
  there since guard wont be run.
5ca798f
Commits on Jul 11, 2012
@durran durran Ensure nested documents multiple levels are included in json. [ fix #… 34724ba
Commits on Jul 12, 2012
@durran durran Allow destroying of documents from after save calls. [ fix #2169 ] de20028
@durran durran Use destroy instead of delete when replacing embeds one. [ fix #2178 ] 9eff1e2
@durran durran Test multi-jdks for jruby 317a4b8
@durran durran Add empty jdk ebb066d
@durran durran Move changes to travis config to 3.0 stable branch d2b279e
@durran durran Get rid of mocha, 1 less dependency a0f9024
@durran durran Fix travis matrix 352fc03
@durran durran Error message generation methods should not have public visibility
- [ close #2191 ]
9bbdeaa
@durran durran Dont puts, just inspect c39a12b
@durran durran Bump to 3.0.1 b3a2aec
Commits on Jul 14, 2012
@jingoro jingoro Have presence validator on relation respect autosave = false b05d922
@durran durran Update changelog f4fa161
@durran durran Add spec for #2193 ab95c7a
Commits on Jul 16, 2012
@durran durran Only use java 7 jdks on travis ce27394
Commits on Jul 19, 2012
@durran durran Store the collection on context initialization e69d8d6
@durran durran Pass collection through to map/reduce and findAndModify cc75233
@durran durran Map/reduce now works in conjunction with Model.with. [ fix #2203 ] 958db35
Commits on Jul 20, 2012
@durran durran Fix double iteration issues with eager loading belongs to relations. …
…[ fix #2207 ]
277c532
Commits on Jul 22, 2012
@durran durran Raise InvlidIncludes when includes params are not valid. [ fix #2204 ] 9b04a52
@durran durran fixing rspec randomized failures 1c2795b
Commits on Jul 24, 2012
@durran durran Model#inc now accepts BigDecimal values. [ fix #2224 ] 1a3aeb8
@durran durran Map/reduce with specs use mongohq 4026da3
@durran durran Ensure errors are cleared with validate: false. [ fix #2212 ] 67acd97
Commits on Jul 25, 2012
@durran durran Don't eager load all docs on first or last. [ fix #2242 ] b80ea7a
@durran durran Use strong consistency for map/reduce operations. [ fix #2241 ] 7044df8
@durran durran Keep instance of document in validation exceptions. [ fix #2236 ] bccd0c0
@franc franc fix eager loading for railsadmin compatibility. e133810
Commits on Jul 26, 2012
@durran durran Ensure many to many fk fields are flagged resizable. [ fix #2238 ] 519b0de
@durran durran Get rid of id warnings for mass assignment in nested attributes. [ fix 10c95c3
@durran durran Fix multiple sets in a row on embeds one relations. [ fix #2216 ] 0592c8e
@durran durran Ensure uniqueness validation works with custom persistence:
- Previously the persistence options would be cleared out after the
  database query that the uniqueness validation performs, causing the
  document to be persisted in its normal location. This now keeps the
  options in the thread local unless validation fails.
- [ fix #2234 ]
21ebdc8
@durran durran Bump version to 3.0.2 15122d4
@jonhyman jonhyman Updating exists? methods to try to find a document instead of checkin… 404035a
@jonhyman jonhyman Obviating the need to skip the identity map for #exists? by hitting M…
…oped directly. DRYing up duplicate code.
e8bceee
@durran durran Move exists down to embedded/relational classes, remove unnecessary d…
…elegate
3be5079
Commits on Jul 27, 2012
@durran durran Use origin's deep copy instead of duping selector and options. [ #2255 ] 3641870
@durran durran Don't convert integer $inc values to floats. [ fix #2254 ] d128367
Commits on Jul 29, 2012
@durran durran Dont fire autosave if before callbacks have terminated the chain. [ fix 14355a9
@durran durran Check type selection when pulling from identity map.
In order to guard from models attempting to pull a document from the
identity map that matches the id, but is of a type that is a parent or
sibling, we need to add the type selection to the check as well.

[ fix #2259 ]
1eb295d
@durran durran Loosen up the gemspec for moped b18edc7
@durran durran Bump to 3.0.3 8f0d67e
@durran durran Start of 3.0.4 69a0e85
Commits on Jul 31, 2012
@durran durran Cast foreign keys for n-n on set, not validation. [ fix #2263 ] f511b38
@haihappen haihappen Marks documents again as persisted after restoring them. 66efe60
@durran durran Update changelog for #2266 a829523
Commits on Aug 01, 2012
@durran durran Fix default scope stripping against nil values:
If a selector existed as a scope, and it had a nil value in it, the
scope would get cleared completely since we checked only for nil and not
if the key existed.

[ fix #2272 ]
d16f74f
Commits on Aug 03, 2012
@durran durran When loading models, continue with warning if exception is raised
[ fix #2274 ]
d5bdc01
@durran durran Update changelog bbf6d9c
Commits on Aug 08, 2012
@durran durran update only updates first, update_all updates everything. [ fix #2278 ] 4353285
Commits on Aug 11, 2012
@durran durran Don't apply options on sync callback updates.
When a default_scope exists on either side of a many-to-many relation
that applies options (like a sort), the resulting MongoDB command to
update the keys is invalid since MongoDB doesn't like $and queries
inside an update with a $query and $orderby options. It raises no error
in safe mode, but does log the following error in the db:

exception: invalid operator: $and code:10068 0ms

This fix removes any options in the criteria when updating the keys.

[ fix #2280 ]
806af6c
@durran durran Bump to next version 7c1e356
Commits on Aug 13, 2012
@durran durran Fix mongohq setup a6c6ea2
@dzello dzello Match also on class name when looking up inverse. e45f8b6
Commits on Aug 16, 2012
@jpmckinney jpmckinney Fix touch to only update the timestamp and optional field no matter t…
…he other dirty changes. [ fix #2291 ]
105d211
@durran durran Presence validation should pass if value is false. [ fix #1091 ] 27818fb
@durran durran Ensure 1.8 compat 094064a
Commits on Aug 18, 2012
@jonhyman jonhyman Protecting has and belongs to many relations from trying to pull agai…
…nst a null set of ids.
9ed9cbe
@durran durran Update changelog b5d185a
@durran durran Ensure reloading refreshes document in the identity map. [ fix #2300 ] f968d91
@durran durran Revert the initialize callbacks check 4458fb3
Commits on Aug 22, 2012
@durran durran Ensure documents retrieved by find on relations are kept in memory. […
… fix #2308 ]
bd1e2c5
@durran durran Remove dead unsupported version code e8fe670
@netoneko netoneko imlements default_spec merge with deferred evaluataion a390dc3
@durran durran Refactor default scope merging b481079
@durran durran Allow multiple sets of embeds_one relations with a hash. [ fix #2309 ] 3f0c70f
@durran durran Fix default scoping merge to delay until needed 1d4c635
Commits on Aug 25, 2012
@rehevkor5 rehevkor5 * fix spec for TimeWithZone. it was almost identical withpec/mongoid/…
…extensions/time_spec.rb

* TimeWithZone.demongoize(nil) should return nil.
5b7b7d9
@durran durran Document#changes should reflect the actual changes. [ fix #2311 ] 7e0bda9
@durran durran Slight perf improvement a4b1c6e
@durran durran Fix typo in spec 587dc15
@durran durran Fix typo in spec bc09160
@Nielsomat Nielsomat Add failing spec for double overwriting a HABTM relation with the sam…
…e value
f36e0c8
@durran durran Fix clearing of inverse fks on in memory duplicate set. [ fix #2310 ] 289aa18
@durran durran Bump branch to 3.0.6 317d099
@durran durran Update changelog 9dd32b8
@durran durran Ensure even integers get converted to float on float fields. [ fix #2318
 ]
5df13cd
Commits on Aug 26, 2012
@durran durran Changes for new mongohq replset 98ab662
Commits on Sep 01, 2012
@jpmckinney jpmckinney Add specs to exhibit strange behavior when aggregating on field that …
…doesn't always exist
75df339
@jpmckinney jpmckinney ensure the field value is not null in the aggregate's reduce function 8a66ddb
@durran durran Update changelog a170b22
@durran durran Don't execute callbacks on base document that cannot execute them. [ …
…fix #2327 ]
25f5d41
@durran durran Ensure relation criteria always have ordering applied if applicable. …
…[ fix #2328 ]
1159135
@durran durran Ensure nested attrs on band before spec 5a15029
Commits on Sep 06, 2012
@durran durran Fix expect -> should deprecation 17586e9
@durran durran Fix expect -> should deprecation ef509c7
@durran durran Use safe mode on modification spec dc78616
@durran durran Use same travis config in 3.0.0-stable as master a79ad8a
@durran durran Fix random spec failures 1477762
@durran durran Run all specs in strong consistency. [ #2336 ] fa297f5
@durran durran Ensure belongs_to relations are evolvable:
When passed the proxy or the document.
[ fix #2346 ]
c1fa35e
@camallen camallen use ::Time.parse to check if the string contains a valid Time.
ActiveSupport::TimeZone.parse was returning nil on malformed Time strings but Time.parse throws the expected ArgumentError.
d36ffb7
@durran durran Adding note and update changelog 84e8c45
@durran durran Fix the last random failure d017fca
@durran durran Really trying to force this exception on travis 126414c
@durran durran Can't get this damn test to pass on travis 644422b
Maxim Dobryakov validates_associated should handle options (like :message) as describ…
…ed in doc
bd182ea
Commits on Sep 08, 2012
@durran durran Fix size and length inconsistency when limit is applied and docs are …
…iterated over. [ fix #2330 ]
0394910
@durran durran Allow field aliasing to work with update_attribute. [ fix #2353 ] e1c5573
@durran durran Ensure field limitation is scoped to model. [ fix #2356 ] 0c9ab0b
@durran durran Switch to using criteria instance to check selection. [ fix #2356 ] 0d18b18
Commits on Sep 09, 2012
@durran durran Remove unnecessary config and file 16c0c6a
Commits on Sep 11, 2012
@durran durran Ignore attempts to replace an embeds_one with the same document. [ fix cc367e0
@durran durran Only set the inverse field value when needed.
In the case where a polymorphic parent in a relational association does
not have more than one definition with the same name, there is no need
to set this value and shouldn't be there.

[ fix #2362 ]
9b3e234
@durran durran Ignore mass assignment rules when cloning. [ fix #2360 ] 51c0708
Commits on Sep 15, 2012
@durran durran Don't delete paranoid documents when restricted exception is raised. …
…[ fix #2370 ]
4891616
@durran durran Ensure mongoization of values in all atomic operations. [ fix #2372 ] 548852c
@DouweM DouweM Make sure destroy callbacks are only run once when destroyed through …
…nested attributes.

The document may already have been destroyed as a result of `existing.delete(doc)`, so don't destroy it again.
a824266
@durran durran Uniqueness validation scoping now workds with aliased fields. [ fix #… 77b1ab5