-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Chore: Replace NullChapter with NullChapterable
This will replace `NullChapter` with `NullChapterable`, which will hopefully simplify things, I don't think we need both or a `NullClub`, `NullChapterable` should cover everything. Refs: #5349
- Loading branch information
1 parent
6be003c
commit fa7613f
Showing
7 changed files
with
23 additions
and
28 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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,21 @@ | ||
class NullChapterable < NullObject | ||
def name | ||
nil | ||
end | ||
|
||
def summary | ||
nil | ||
end | ||
|
||
def primary_contact | ||
nil | ||
end | ||
|
||
def chapter_program_information | ||
ChapterProgramInformation.none | ||
end | ||
|
||
def build_chapter_program_information | ||
ChapterProgramInformation.none | ||
end | ||
end |
4 changes: 2 additions & 2 deletions
4
spec/null_objects/null_chapter_spec.rb → spec/null_objects/null_chapterable_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