Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move uniqueness validation to ActiveRecord module
- Loading branch information
Showing
11 changed files
with
26 additions
and
26 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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
module Shoulda | ||
module Matchers | ||
module ActiveModel | ||
# @private | ||
module Uniqueness | ||
end | ||
end | ||
end | ||
end | ||
|
||
require 'shoulda/matchers/active_record/uniqueness/model' | ||
require 'shoulda/matchers/active_record/uniqueness/namespace' | ||
require 'shoulda/matchers/active_record/uniqueness/test_model_creator' | ||
require 'shoulda/matchers/active_record/uniqueness/test_models' |
2 changes: 1 addition & 1 deletion
2
...matchers/active_model/uniqueness/model.rb → ...atchers/active_record/uniqueness/model.rb
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,6 +1,6 @@ | ||
module Shoulda | ||
module Matchers | ||
module ActiveModel | ||
module ActiveRecord | ||
module Uniqueness | ||
# @private | ||
class Model | ||
|
2 changes: 1 addition & 1 deletion
2
...hers/active_model/uniqueness/namespace.rb → ...ers/active_record/uniqueness/namespace.rb
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
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
2 changes: 1 addition & 1 deletion
2
spec/unit/shoulda/matchers/active_model/validate_uniqueness_of_matcher_spec.rb
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