forked from mongodb/mongoid
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support for using aliased field names in combination with validates_u…
…niqueness. (Non-aliased names continue to function as before.) Specs cover: - aliased field names in combination with validates_uniqueness - the presence of aliased field key in the errors hash - aliased field in embedded documents
- Loading branch information
1 parent
9ffdf89
commit 00251f4
Showing
4 changed files
with
102 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -20,3 +20,4 @@ doc/* | |
*.profile | ||
*.profile.pdf | ||
*.symbols | ||
.idea |
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,7 +1,7 @@ | ||
class Definition | ||
include Mongoid::Document | ||
field :description, type: String | ||
field :part, type: String | ||
field :p, as: :part, type: String | ||
field :regular, type: Boolean | ||
embedded_in :word | ||
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