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.
This comparison is big! We're only showing the most recent 250 commits
Commits on Feb 01, 2014
@durran durran extract query cache common behaviour into module 6c1b47f
@durran durran Fix query cache on first/last calls.
[ fix #3514 ]
7892675
@durran durran Bump to latest moped beta ee937d5
@durran durran Bump to beta1 5a19e92
@arthurnn arthurnn Add :last test to query_cache 5b0f031
Commits on Feb 18, 2014
@rodrigosaito rodrigosaito From mongoid 3.1.x to mongoid 4.0.0 the behavior of 'only' method has…
… changed

You cannot access the id without explicit passing it as a parameter to 'only' method, changed to always have id as an attribute

fixes #3525
77e5875
Commits on Feb 19, 2014
@arthurnn arthurnn Add Invalid Storage Parent error class.
[fixes #3538]
d2bc08b
@arthurnn arthurnn Fix doc [skip ci] 5fcb8dd
Commits on Feb 21, 2014
@arthurnn arthurnn Bump rspec to 3.0.0.beta2 c8af8d0
Commits on Feb 28, 2014
@arthurnn arthurnn Merge pull request #3533 from rodrigosaito/include_id_in_only
Change in behavior with MongoDB projections and Mongoid 'only' method.
bde8ac1
Commits on Mar 12, 2014
@arthurnn arthurnn Use ruby 2.1.1 local 28157ab
@arthurnn arthurnn Test on 2.1.1 on travis 257c027
@arthurnn arthurnn Remove rails40.gemfile as this should be the default Gemfile 73c495b
@arthurnn arthurnn Use AM 4.0.4 rc1 2fe04f8
@arthurnn arthurnn Use 4.1.0.rc1 on 4.1 tests
Also cleanup the gemfile
164755a
Commits on Mar 13, 2014
@knapo knapo Fix uniqueness validation for inherited models. 18e185f
Commits on Mar 14, 2014
@dedene dedene Expanding the query cache keys with limit, skip and fields 59db286
@dedene dedene Fixing cache issue on querying all / first with same selector cd64efe
Commits on Mar 17, 2014
@arthurnn arthurnn Add comment to query_cache method dba1c17
@dedene dedene Update QueryCache spec
to show need for including the "skip" value in the cache key
503a5b4
Commits on Mar 30, 2014
@durran durran Merge pull request #3561 from knapo/fix_uniquness_validation_for_inhe…
…ritance

Fix uniqueness validation for inherited models.
f0b20eb
Commits on Mar 31, 2014
@dedene dedene Without :cursor / :first in cache key spec fails
running `rspec spec/mongoid/query_cache_spec.rb`

"Mongoid::QueryCache when querying in the same collection with same
selector when querying only the first queries again"

will throw following error:

"no implicit conversion of String into Integer"
b458fde
@dedene dedene Adding :first / :cursor context to the cache key
With this change, the previous failing spec is solved.
284c9a7
Commits on Apr 01, 2014
@durran durran Allow fields to be reset to default values.
[ close #3580 ]
d12bb52
@durran durran Fix localized fields with missing attributes.
[ fix #3568 ]
0a76aa7
@durran durran Bit changed behaviour 453142f
@durran durran Don't send empty sets a49f796
@durran durran Fix bad hint specs fa57fca
Commits on Apr 02, 2014
@arthurnn arthurnn Fix scope docs 026e321
Commits on Apr 11, 2014
@arthurnn arthurnn Merge pull request #3562 from zenjoy/fix/query-cache
Expanding the query cache keys with limit, skip and fields
da35e0c
Commits on Apr 16, 2014
@arthurnn arthurnn Use svg travis badge [skip ci] 2293159
Commits on Apr 17, 2014
@nusco nusco Replace string evaluation with regular Ruby code 310d653
Commits on Apr 18, 2014
@arthurnn arthurnn Revert "Bit changed behaviour"
This reverts commit 453142f.
670669c
@arthurnn arthurnn Reverts 'd12bb528a729d9e6247954e0f5baaf0b31402d59'
Reverts spec/mongoid/contextual/atomic_spec.rb
62d77b2
@arthurnn arthurnn Use final 4.1.0 ae2c440
@arthurnn arthurnn Use final AM/AS 4.0.4 030442e
Commits on Apr 22, 2014
@fred fred Fixes atomic operations on read-only attributes 9cafc40
@fred fred more specs for bit and inc readonly dca172f
@arthurnn arthurnn Merge pull request #3603 from nusco/master
Replace string evaluation with regular Ruby code
4893e77
Commits on Apr 23, 2014
@arthurnn arthurnn Use ActiveModel::Model
include ActiveModel::Model instead of the 4 modules different AM models.
4eb508f
Commits on Apr 24, 2014
@durran durran Merge pull request #3614 from mongoid/use_model_model
Use ActiveModel::Model
8b33b62
Commits on Apr 25, 2014
@cjbottaro cjbottaro Fix validates_associated when documents are flagged_for_destroy 79374fc
Commits on Apr 29, 2014
@durran durran Merge pull request #3619 from cjbottaro/3618-validates_associated_fla…
…gged_for_destroy

Fix validates_associated when documents are flagged_for_destroy
0de7759
@durran durran Update changelog 518f700
@durran durran Bring #3617 into master 5bd7f74
@durran durran Revert "Revert "Bit changed behaviour""
This reverts commit 670669c.
8addb20
@durran durran Tests passing on 2.6.0 e93a483
Commits on May 10, 2014
@arthurnn arthurnn Revert "Merge pull request #3533 from rodrigosaito/include_id_in_only"
This breaks the following situation:
```
class MyModel
  default_scope -> { without(:some_field) }
end

MyModel.first
```

I will raise a Moped::Errors::QueryFailure, as a project cannot mix
inclusions and exclusions.

This reverts commit bde8ac1, reversing
changes made to c8af8d0.

Conflicts:
	lib/mongoid/attributes.rb
aa2c82e
Commits on May 13, 2014
@arthurnn arthurnn Small indentation fix [skip ci] 41bd3fc
@arthurnn arthurnn Dont lose the persistence_options when return a criteria
Keep the persistence options given to the class when calling a method
that returns a `Mongoid::Criteria`.

[fixes #3558]
9be37a9
Commits on May 18, 2014
@deeeki deeeki Require `active_support` before cherry-picking any modules a427170
Commits on May 19, 2014
@arthurnn arthurnn Use rspec 3 rc1 44b83e3
Commits on May 20, 2014
@arthurnn arthurnn Merge pull request #3654 from deeeki/require_activesupport
Require `active_support` before cherry-picking any modules
bb8b503
Commits on May 27, 2014
@arthurnn arthurnn Bump version to beta2 a94b0c9
@arthurnn arthurnn Use moped 2.0.0.rc1 on gemspec 51e8c9c
Commits on May 28, 2014
@arthurnn arthurnn Add check for mongodb_version on bitwise tests
[fixes #3609]
833d344
@arthurnn arthurnn Merge pull request #3613 from fred/readonly-atomic
Don't allow atomic operations on read-only attributes
e0df05d
@arthurnn arthurnn Add changelog for #3613
Also small cleanup
9646fa2
Commits on May 29, 2014
@arthurnn arthurnn Add gemspec to 4.1.0 travis 707c604
@arthurnn arthurnn Bump rspec in 4.1 gemfile 792ada4
@arthurnn arthurnn Organize travis file
also stop testing on jruby-head
708d690
@arthurnn arthurnn Fix gemspec pat on rails41 9af74d1
@arthurnn arthurnn add jruby options back, otherwise we get outofmemory issues f9e6fdb
Commits on May 30, 2014
@arthurnn arthurnn Force activemodel dependecy to 4.0.x
Mongoid 4.0.0 wont support activemodel 4.1.x, so we need to hard force that version for now
157d2df
@arthurnn arthurnn Dont test on rails 4.1 for now 5235c02
Commits on Jun 01, 2014
@arthurnn arthurnn Avoid extra query on touch
Use where instead of find to avoid an extra query on the .touch method.
[fixes #3583]
1966442
Commits on Jun 02, 2014
@arthurnn arthurnn Add ActiveModel module instance methods to prohibited_methods list
[fixes #3620]
bdbbae6
@arthurnn arthurnn Validate method? and method= on create field
We need to validate if the name of the field collide with methods name
such foo? or foo= .

[fixes #3620]
b86a3cd
@arthurnn arthurnn Changelog entry for #3620 f9cdf0d
@arthurnn arthurnn Move Changelog entry. b33199c
@arthurnn arthurnn Better Changelog for Mass assignment security.
[fixes #3665]
f1105a0
@arthurnn arthurnn Use rspec 3 final a3db23f
@arthurnn arthurnn Set rc1 version 182cc32
@arthurnn arthurnn Better test example [skip ci] fdd963e
Commits on Jun 04, 2014
@arthurnn arthurnn Revert "Force activemodel dependecy to 4.0.x"
This reverts commit 157d2df.
This reverts commit 5235c02.

[fixes #3680]

Loose ActiveModel dependency again, so we can release Mongoid 4.0, with
AM 4.0 and 4.1 support.
7d5d1f6
@arnvald arnvald Fix 3 out of 4 failing callbacks tests on ActiveModel 4.1
Tests for running callbacks were fixed.
The last failing one is: spec/mongoid/interceptable_spec.rb#431

Conflicts:
	mongoid.gemspec
f4560f1
@arthurnn arthurnn Define callback so chain is not emtpy b82ad9a
@arthurnn arthurnn Dont allow failures on AM 4.1 1e50450
Commits on Jun 05, 2014
@pcreux pcreux Fix serialize models with subset of attributes 9c16b87
Commits on Jun 06, 2014
@arthurnn arthurnn Merge pull request #3683 from pcreux/fix-serialize-with-only
Fix serialize models with subset of attributes
9c0fe7f
Commits on Jun 08, 2014
@arthurnn arthurnn Make pluck work with embedded assoc
[fixes #3676]
c12a0f3
@arthurnn arthurnn Changelog Entry 1261bc8
Commits on Jun 10, 2014
@chief chief Fix comments in config generator 65a6764
@arthurnn arthurnn Merge pull request #3687 from chief/fix_comments_in_generator
Fix comments in config generator
027929d
Commits on Jun 16, 2014
@arthurnn arthurnn Use moped rc2 f0cd308
@arthurnn arthurnn Bump to rc2 49bc68f
Commits on Jun 17, 2014
@Nielsomat Nielsomat Add failing tests for attr_readonly using field aliases 060687d
@Nielsomat Nielsomat Make attr_readonly compatible with field aliases 2c54159
@arthurnn arthurnn Fix LogSubscriber test
Add super on initialize method

[fixes #3695]
1fcb872
Commits on Jun 23, 2014
@arthurnn arthurnn Bump moped to 2.0 stable 347472e
@arthurnn arthurnn Bump to version 4.0.0 final! ! ! :heart: 50b633c
Commits on Jun 26, 2014
@reiz reiz Update dependency badge for version 4.0.0 517d68a
Commits on Jun 27, 2014
@arthurnn arthurnn Merge pull request #3705 from reiz/master
Update dependency badge for version 4.0.0
e01daa7
Commits on Jul 10, 2014
@tallica tallica Update CHANGELOG.md 8ea7a05
Commits on Jul 11, 2014
@guilleiguaran guilleiguaran Update the docs for find_by.
Mongoid::Errors::DocumentNotFound is raised only when
Mongoid.raise_not_found_error is true, nil is returned elsewise.
f232c3b
@guilleiguaran guilleiguaran Add find_by!
Find the first +Document+ given the conditions or raises
Mongoid::Errors::DocumentNotFound regardless of the value of
Mongoid.raise_not_found_error
a44bc7c
Commits on Jul 16, 2014
@arthurnn arthurnn Merge pull request #3728 from tallica/patch-1
Update CHANGELOG.md
1f8e12c
Commits on Jul 22, 2014
@laserlemon laserlemon Track string allocation from threaded.rb
Before: 1,075,171
540da09
@laserlemon laserlemon Use memoized, constant keys in threaded.rb to reduce string allocation
After: 102
9a2584b
@laserlemon laserlemon Remove temporary string allocation tracking 19c360d
@arthurnn arthurnn Merge pull request #3745 from collectiveidea/threaded-string-allocation
Allocate far fewer strings from threaded.rb
a2586f0
Commits on Jul 31, 2014
@jcohenho jcohenho Fix typo 384c95f
Commits on Aug 01, 2014
@arthurnn arthurnn Merge pull request #3757 from jcohenho/master
Fix typo
8cb17e9
Commits on Aug 04, 2014
@dedene dedene Fix for query cache with large collections 62b520d
Commits on Aug 14, 2014
@ElMassimo ElMassimo Use nanoseconds for cache_key timestamp instead of plain seconds b13b8ea
Commits on Aug 15, 2014
@arthurnn arthurnn Merge pull request #3773 from ElMassimo/master
Use nanoseconds for cache_key timestamp instead of plain seconds
95e351c
@arthurnn arthurnn Changelog Entry for #3773 4f021aa
@arthurnn arthurnn User.all.pluck(*multiple) should not compact the result.
When passing multiple fields, and a few fields dont exist, or dont have
data, we should return nil, otherwise the returned arrays will have
different size.

[fixes #3703]
53ad455
@arthurnn arthurnn Fix pluck test a0241d2
@arthurnn arthurnn Add gemfiles/*.lock to gitignore 5ba2e1f
Commits on Aug 29, 2014
@arthurnn arthurnn Merge pull request #3760 from zenjoy/fix/query-cached-getmore
Fix for query cache with large queries
4e3b39e
Commits on Sep 05, 2014
@gauthier-delacroix gauthier-delacroix Fix #reload uses id instead of _id 7c1fea0
@arthurnn arthurnn Merge pull request #3792 from gauthier-delacroix/Fix-#reload-uses-id-…
…instead-of-_id

Fix #reload uses id instead of _id
1f7dc9a
Commits on Sep 08, 2014
@seuros seuros Added test for rails 4.2 1a89117
@seuros seuros use public_send instead of send 44bc2c7
@arthurnn arthurnn Run #bit tests on mongo 2.6+ 3b62444
@arthurnn arthurnn Merge pull request #3796 from seuros/public_send
Test in rails 4.2 and use public_send instead of send
0e93563
Commits on Sep 09, 2014
@arthurnn arthurnn allow_failure on rails 4.2 for now d90a946
Commits on Sep 29, 2014
@arthurnn arthurnn Dont raise MissingAttributeError when using only.
This case should return false instead of raise:
     Person.only(:name).first.attribute_present?(:id)
2945bc5
Commits on Oct 17, 2014
@Zorbash Zorbash Fix typo in mongoid.yml configuration template 9e1b07f
@arthurnn arthurnn Merge pull request #3836 from Zorbash/patch-1
Fix typo in mongoid.yml configuration template
f4f489e
Commits on Oct 28, 2014
@rahul-sourcebits rahul-sourcebits Added underscore prefix for unused local parameteres as per the ruby … 1737359
Commits on Oct 31, 2014
@cheredon cheredon Fix #get_more for query_cache with large collection 26da3f2
Commits on Nov 11, 2014
@Zorbash Zorbash Rephrase comment in lib/mongoid/railtie.rb 8e793ac
Commits on Nov 26, 2014
@timoschilling timoschilling remove Railtie.generator
This method is no longer needed, he detects the generator method wich has changed from Rails 2.x to 3.0.0. Mongoid has a dependency to activemodel > 4.0, which related in a dependency to Rails > 4.0. Which means that this check is no longer needed, there can't be a Rails < 4.0
0557e7c
@arthurnn arthurnn Merge pull request #3867 from timoschilling/patch-3
remove Railtie.generator
7575a40
Commits on Nov 28, 2014
@arthurnn arthurnn Merge pull request #3857 from Zorbash/master
Rephrase comment in lib/mongoid/railtie.rb
a4a4b73
Commits on Nov 29, 2014
@arthurnn arthurnn Merge pull request #3841 from lethalbrains/master
Added underscore prefix for unused local parameters as per the ruby sty...
90567ea
Commits on Dec 03, 2014
@arthurnn arthurnn Change spec order to make it green again
Not sure why, but after 2945bc5 the spec added to attributes_spec.rb made criteria_spec start failing, that only happens when running the entire test suite and under MRI
4a66796
@arthurnn arthurnn AM, AP bump on Gemfile 978cb68
@arthurnn arthurnn Use AM 4.2 rc 9b7779e
@arthurnn arthurnn Remove guard and guard-rspec from dev env a209732
@arthurnn arthurnn Bump ruby version eb72047
@arthurnn arthurnn Bump rspec to 3.1.x 30c6370
Commits on Dec 05, 2014
@cheredon cheredon Update changelog for #3847 8bb9eff
@arthurnn arthurnn Merge pull request #3847 from cheredon/issue3847
Pluck duplicates first 101 records for query cache
f365638
@arthurnn arthurnn Organize changelog [skip ci] 8045a72
@arthurnn arthurnn Improve query_cache specs 6960310
@arthurnn arthurnn Improve travis file
mainly add sudo false, which should speed up the jobs
f49a714
Commits on Dec 08, 2014
@gauthier-delacroix gauthier-delacroix Fix calls to #id instead of #_id 89be744
@gauthier-delacroix gauthier-delacroix Add #id custom alias tests a89863d
Commits on Dec 09, 2014
@gauthier-delacroix gauthier-delacroix Update changelog for #3792 and #3881 3c09819
@arthurnn arthurnn Merge pull request #3881 from gauthier-delacroix/Fix-calls-to-id-inst…
…ead-of-_id

Fix calls to #id instead of #_id
1f3875a
@arthurnn arthurnn update readme [skip ci]
small changes, use svg badges
808f6c1
Commits on Dec 11, 2014
@niedfelj niedfelj updating generated config ae37920
Commits on Dec 22, 2014
@arthurnn arthurnn Remove guardfile [skip ci] 65ffdbb
Commits on Dec 24, 2014
@sagarlekar sagarlekar corrected typo in 'Document' e86ab3f
@arthurnn arthurnn Merge pull request #3896 from sagarlekar/master
corrected typo in 'Document'
a4365d7
Commits on Dec 26, 2014
Sanjiv Jha changes done as per ruby style guide 9dbee02
Sanjiv Jha Merge branch 'master' of https://github.com/mongoid/mongoid 395df9d
Sanjiv Jha fixed failing spec d0c30f4
Sanjiv Jha Refactor done as per ruby style guide 1b92225
Commits on Dec 27, 2014
@TimMoore TimMoore Explicitly set enforce_available_locales to false.
This fixes spec failures when running with i18n 0.7.0.
8e96aee
Commits on Dec 30, 2014
@arthurnn arthurnn Merge pull request #3899 from TimMoore/fix-invalid-locale-error
Explicitly set enforce_available_locales to false.
cd9ad04
Commits on Jan 05, 2015
@sivagollapalli sivagollapalli FIX# warning: duplicated key a89b0d7
@arthurnn arthurnn Merge pull request #3906 from sivagollapalli/fix_spec_warnings
FIX# warning: duplicated key
125e20b
@deepj deepj Use latest 2.2 on travis c287f4c
Commits on Jan 06, 2015
@arthurnn arthurnn Merge pull request #3907 from deepj/master
Use latest 2.2 on travis
5970346
Commits on Jan 10, 2015
@nkriege nkriege Fix relations named "parent".
The @_parent variable defined in Traversable was colliding with
the "@_#{name}" variables defined by Relations. Added an extra
underscore to the name to protect against this.
4f22ad6
Commits on Jan 11, 2015
@arthurnn arthurnn Merge pull request #3914 from nkriege/belongs_to_parent
Fix relations named "parent".
830d8a3
@arthurnn arthurnn Add changelog entry for #3914 45dbee4
Commits on Jan 19, 2015
@swistaczek swistaczek Require rails only if Rails variable is present c66a1c3
@benedikt benedikt Converts preloaded models to their actual filename when loading them
According to the documentation `preload_models` is either a Boolean or an Array of models to preload. Unfortunatelly specifing the model name (`User`) would not cause proper preloading on case sensitive file systems.

This commit fixes this and also adds support for preloading camel cased model names by calling `.underscore` on the given model name.
a2738c2
Commits on Jan 23, 2015
@arthurnn arthurnn Merge pull request #3922 from swistaczek/master
Require rails only if Rails variable is present
3cf8ebc
@arthurnn arthurnn Bump revision to 4.0.1 1a7bbaa
Commits on Jan 30, 2015
@arthurnn arthurnn Merge pull request #3883 from niedfelj/session_options
Updating mongoid.yml template
06faf7c
Commits on Jan 31, 2015
@Shwetakale Shwetakale refs #3889 #3888 checks added for :set for dynamic attributes and err…
…or on non-existing

field

When we call process_attribute, it does all the checks for ensuring that
dynamic attributes are allowed and it also gives 'Mongoid::Errors::UnknownAttribute' when Mongoid::Attributes::Dynamic
not included in model.

refs #3889 #3889
96d670f
@Shwetakale Shwetakale Changelog entry for #3888 and #3889. d7d8459
@arthurnn arthurnn Merge pull request #3890 from Shwetakale/set_feature
refs #3889 #3888 checks added for :set for dynamic attributes and error
on non-existing field.
35aea60
Commits on Feb 13, 2015
@amw amw Fix remove_undefined_indexes.
Currently the task removes all of the indexes from Mongoid.models.
BSON::Document does not allow symbolic keys so we need to convert to
hash first.
56c212c
Commits on Feb 14, 2015
@arthurnn arthurnn We should be able to use doc.to_key to query.
`to_key` method on ActiveModel and ActiveRecord returns an key that can
be can be used to query the db to find that object. We should follow
that API, and not return an ObjectId object.

This fixes an annoying bug when using Mongoid + Devise, where devise use
the to_key method to serialize the user in the session.

[related plataformatec/devise#2882]
[fixes #3626]
658a5d4
@arthurnn arthurnn update rails42 gemfile 9b68b22
@arthurnn arthurnn Merge pull request #3948 from amw/fix_remove_undefined_indexes
Fix remove_undefined_indexes.
27623b2
@arthurnn arthurnn BSON::Document#symbolize_keys needs to return symbols
[related #3948]
317aa53
@arthurnn arthurnn Update changelog
Upload changelog for #3904 and #3948
956e31d
@arthurnn arthurnn override transform_keys on BSON::Document instead, to fix symbolize_keys
We cannot use to_hash , on a Hash object as that will not work on ruby 1.9.3
c46a2a1
@chamnap chamnap fix contextual memory multi field sort spec 472032f
@arthurnn arthurnn Merge pull request #3935 from Shwetakale/set_feature
fix contextual memory multi field sort spec
44c711a
Commits on Feb 15, 2015
@arthurnn arthurnn Dont apply sorting on find_by
[fixes #3934]
54ab863
@arthurnn arthurnn Fix database switching when using the same session and different
database on store_in

There was a bug when combining #store_in and #with methods that the
session was not respecting the right database name.

[fixes #3722]
3be2414
@arthurnn arthurnn Merge pull request #3733 from guilleiguaran/find_by_bang
Add find_by!
43c5e6b
@arthurnn arthurnn Use find_first on find_by! 64c5141
@arthurnn arthurnn Update changelog d221262
Commits on Feb 16, 2015
@arthurnn arthurnn fix order spec that failed on rails 4.2 0b61f8e
@arthurnn arthurnn Fix leaky tests ecc5fe4
@arthurnn arthurnn Dont allow failure on rails 4.2 660868d
@tombeynon tombeynon Add #find_or_create_by! to many associations 6e494b1
@arthurnn arthurnn Better restore of raise_not_found_error e8eca38
@arthurnn arthurnn Add find_first to memory context 3619371
Commits on Feb 17, 2015
yaroslav zemlyanuhin [#3812] Fixed validation context when saving
 * Support for contexts in prepare_insert & prepare_update
 * Appropriate tests
eed9085
@tombeynon tombeynon Update changelog 839ba78
@arthurnn arthurnn Merge pull request #3938 from d4rk5eed/3812_validation_context_failed
3812 validation context failed
47fbb5f
@arthurnn arthurnn Use master on travis badge [skip ci] 650260b
@arthurnn arthurnn Merge pull request #3950 from tombeynon/many-find-or-create-by-bang
Add #find_or_create_by! to many associations
f8dc585
Commits on Feb 19, 2015
@arthurnn arthurnn Bump version to 4.0.2 506d411
@arthurnn arthurnn Update changelog 6632302
Commits on Feb 24, 2015
@zarqman zarqman don't try to update counter_cache on frozen records 70e1738
Commits on Mar 03, 2015
@brauliomartinezlm brauliomartinezlm Allow pluck after with none. #3846 e07bf38
@brauliomartinezlm brauliomartinezlm Update CHANGELOG f047e62
@arthurnn arthurnn Merge pull request #3971 from brauliomartinezlm/pluck_for_null_context
Allow pluck after with none. #3846
75233e9
Commits on Mar 05, 2015
@nicolasleger nicolasleger Use new Ruby 2.2.1 in development 3cc2158
@arthurnn arthurnn Merge pull request #3974 from nicolasleger/patch-1
Use new Ruby 2.2.1 in development
8f22ade
Commits on Mar 13, 2015
@Intrepidd Intrepidd Return nil when using {upsert: true} in find_and_modify 2bb339a
Commits on Mar 16, 2015
@Intrepidd Intrepidd Merge remote-tracking branch 'upstream/master' into find-and-modify-u…
…psert
9e46c10
@Intrepidd Intrepidd Add changelog entry for #3985 f40dcde
@arthurnn arthurnn Merge pull request #3985 from Intrepidd/find-and-modify-upsert
Return nil when using {upsert: true} in find_and_modify
80c3390
Commits on Mar 17, 2015
@jonhyman jonhyman Fixes #3993 6484d6d
Commits on Mar 23, 2015
@p p This dup is not necessary because + creates a new list 9278e33
Commits on Mar 24, 2015
@jonhyman jonhyman Pull request comments: moves new classes into their own files, style …
…updates.
955aca0
@jonhyman jonhyman Adds changelog entry for bug fix. 4090278
@jonhyman jonhyman Updates to changelog. 444ed1e
Commits on Mar 25, 2015
@fbernier fbernier Fix default_scope sometimes generating an unwanted field because of a…
… complex query
4cbb35d
Commits on Mar 27, 2015
@estolfo estolfo Bump minimum MongoDB version supported 42cb071
Commits on Mar 30, 2015
@arthurnn arthurnn Merge pull request #3994 from jonhyman/feature/dup-dynamic
Fixes #3993
a9f9464
Commits on Apr 05, 2015
@jonhyman jonhyman Fix regression I caused in 9e5a279 684fc99
@jonhyman jonhyman Inline conditional predicate. 43eddc4
Commits on Apr 06, 2015
@arthurnn arthurnn Merge pull request #4025 from jonhyman/feature/3993-patch
Fix regression I caused in 9e5a279
7ae983a
Commits on Apr 14, 2015
@sivagollapalli sivagollapalli Added spec for issue #3966 525a48c
@sivagollapalli sivagollapalli delete_if documentation fix 5e9f0b8
@arthurnn arthurnn Merge pull request #4036 from sivagollapalli/documentation_fix
delete_if documentation fix
cc69597
Commits on Apr 17, 2015
@Aethelflaed Aethelflaed Mongoid::Relations::Proxy#public_send should not be delegated to @target
6a91071
Commits on Apr 20, 2015
@sivagollapalli sivagollapalli FIX #3966 Embedded documents deleting 89da6a8
Commits on Apr 27, 2015
@durran durran Fix mongohq spec b51f6c3
@durran durran Merge pull request #4040 from Aethelflaed/master
Mongoid::Relations::Proxy#public_send should not be delegated to @target
ab2434c
@durran durran Merge pull request #4035 from sivagollapalli/issue_3966
Added spec for issue #3966
931b6cc
@durran durran Merge pull request #4011 from fbernier/fix_default_scope
Fix default_scope sometimes generating an unwanted field because of a complex query
9e788ab
@durran durran Merge pull request #4007 from p-run/useless-dup
This dup is not necessary because + creates a new list
a9d6244
@durran durran Merge pull request #3694 from herimedia/niels-attr_readonly-with-aliases
Make attr_readonly compatible with field aliases
213a7b3
@durran durran Merge pull request #3962 from zarqman/dont_update_frozen_counter
don't try to update counter_cache on frozen records
26c2351
@johnnyshields johnnyshields Correct code documentation for Set extension
It appears the code documentation for Set was copied incorrectly from Range. Set mongoizes/demongoizes to/from Array, not Hash.
943091a
Commits on Apr 28, 2015
@durran durran Merge pull request #4050 from johnnyshields/patch-1
Correct code documentation for Set extension
ad25ea7
@durran durran Merge pull request #3923 from benedikt/master
Converts preloaded models to their actual filename when loading them
0ac58bf
@durran durran Merge pull request #3897 from narutosanjiv/master
changes done as per ruby style guide
7d82817
@durran durran 3751: Implement minDistance for GeoNear.
Closes #3751.
e1db083
Commits on Apr 29, 2015
@huacnlee huacnlee Avoid string allocations 5543fa1
@huacnlee huacnlee reduce string allocation in Object ivar method 9a76d59
@huacnlee huacnlee Reduce string allocations in Mongoid::Threaded::Lifecycle 4f53465
@huacnlee huacnlee self.class.model_name.cache_key is a string, not need convert 6af681b
Commits on May 04, 2015
@ifightcrime ifightcrime ensure .heriditary? returns true or false, not nil. 3dbc68f
Commits on May 10, 2015
@durran durran Merge pull request #4058 from ifightcrime/fix_hereditary
ensure .heriditary? returns true or false, not nil.
abb0666
@durran durran Merge pull request #4054 from huacnlee/avoid_allocations
Avoid allocations
7045365
Commits on May 12, 2015
@dx7 dx7 Avoid "Missing attribute: '_id'" error when using methods only or wit…
…hout.

Force to use '_id' on method only and don't permit to remove '_id' with
method without.

Fixes #3740
d873923
@arthurnn arthurnn Merge pull request #4037 from dx7/issue-3740
Avoid "Missing attribute: '_id'" error when using methods only or without
6b44095
Commits on May 13, 2015
@durran durran Create constant for all id field values.
- So we don't instantiate a new array for every without or only call.
  This is unnecessary. #3740 / #4037
5aceb68
Commits on May 14, 2015
@durran durran Update readme to note move 467d10f
Commits on May 17, 2015
@tranvictor tranvictor #changed returns an array of changed field names 5245b6b
Commits on May 19, 2015
@durran durran Merge pull request #4070 from tranvictor/fix-changed-method
#changed returns an array of changed field names
88beb48
@kcdragon kcdragon Preventing before_save allback from being called twice after a child …
…create
b6215a2
@jonhyman jonhyman Adds a CHANGELOG entry for #3791 52b2146
@arthurnn arthurnn Merge pull request #3791 and #4066
Fixes issue where `before_save` callback can get called twice after a
child create.

[fixes #3631]
d0c460a