Skip to content

Commit

Permalink
Fix rdoc on atomic operations.
Browse files Browse the repository at this point in the history
Fix #3803
  • Loading branch information
durran committed Jun 4, 2015
1 parent 0e807f1 commit 5c9a59d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/incrementable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Incrementable
#
# @param [ Hash ] increments The field/inc increment pairs.
#
# @return [ true, false ] If the increment succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def inc(increments)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/logical.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Logical
#
# @param [ Hash ] operations The bitwise operations.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def bit(operations)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/poppable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ module Poppable
#
# @param [ Hash ] pops The field/value pop operations.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def pop(pops)
Expand Down
4 changes: 2 additions & 2 deletions lib/mongoid/persistable/pullable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Pullable
#
# @param [ Hash ] pulls The field/value pull pairs.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def pull(pulls)
Expand All @@ -37,7 +37,7 @@ def pull(pulls)
#
# @param [ Hash ] pulls The pull all operations.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def pull_all(pulls)
Expand Down
4 changes: 2 additions & 2 deletions lib/mongoid/persistable/pushable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Pushable
#
# @param [ Hash ] adds The field/value pairs to add.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def add_to_set(adds)
Expand All @@ -43,7 +43,7 @@ def add_to_set(adds)
#
# @param [ Hash ] pushes The $push operations.
#
# @return [ true, false ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def push(pushes)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/renamable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Renamable
#
# @param [ Hash ] renames The rename pairs of old name/new name.
#
# @return [ true, false ] If the rename suceeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def rename(renames)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/settable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module Settable
#
# @param [ Hash ] setters The field/value pairs to set.
#
# @return [ true ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def set(setters)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/persistable/unsettable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ module Unsettable
# @param [ Array<String, Symbol> ] fields The names of the fields to
# unset.
#
# @return [ true ] If the operation succeeded.
# @return [ Document ] The document.
#
# @since 4.0.0
def unset(*fields)
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid/railties/database.rake
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ namespace :db do

namespace :mongoid do
task :load_models do
::Rails.application.eager_load! if defined?(Rails)
::Rails.application.eager_load! if defined?(::Rails)
end
end
end

0 comments on commit 5c9a59d

Please sign in to comment.