-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from johnnyshields/mongoid3-atomic-persistence
Fix atomic persistence for Mongoid3
- Loading branch information
Showing
27 changed files
with
3,033 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
module MongoidMonkey | ||
VERSION = '0.1.3' | ||
VERSION = '0.1.4' | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,24 @@ | ||
|
||
class Address | ||
include Mongoid::Document | ||
field :address_type | ||
field :number, type: Integer | ||
field :no, type: Integer | ||
field :h, as: :house, type: Integer | ||
field :street | ||
field :city | ||
field :state | ||
field :post_code | ||
field :parent_title | ||
field :services, type: Array | ||
field :aliases, as: :a, type: Array | ||
field :test, type: Array | ||
field :latlng, type: Array | ||
field :map, type: Hash | ||
field :move_in, type: DateTime | ||
field :end_date, type: Date | ||
field :s, type: String, as: :suite | ||
field :name, localize: true | ||
|
||
embedded_in :addressable, polymorphic: true | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
class Name | ||
include Mongoid::Document | ||
|
||
field :first_name, type: String | ||
field :last_name, type: String | ||
field :parent_title, type: String | ||
field :middle, type: String | ||
|
||
embedded_in :namable, polymorphic: true | ||
|
||
def set_parent=(set = false) | ||
self.parent_title = namable.title if set | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.