Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Rename FindRaid -> ShowRaid
While this Interactor might still be too simple for it's own object, I'm taking the steps to ensure the Interactor names aren't REST-ish but indicative of the actual use case being handled.
- Loading branch information
Showing
with
8 additions
and 8 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
@@ -39,7 +39,7 @@ def update | ||
protected | ||
|
||
def find_raid(id) | ||
ShowRaid.new.by_id id.to_i | ||
end | ||
|
||
def schedule_raid(raid = nil) | ||
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
@@ -4,7 +4,7 @@ | ||
## | ||
# NOTE: Is this too simple for an Interactor? | ||
## | ||
class ShowRaid | ||
|
||
def by_id(id) | ||
Repository.for(Raid).find(id) | ||
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