This repository has been archived by the owner on Jun 5, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
clean up specs and test activities that don't cache fields
- Loading branch information
1 parent
3cb5816
commit c9a3c3e
Showing
3 changed files
with
67 additions
and
58 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,21 @@ | ||
class Activity | ||
include Streama::Activity | ||
|
||
activity :enquiry do | ||
activity :new_enquiry do | ||
actor :user, :cache => [:full_name] | ||
object :enquiry, :cache => [:subject] | ||
object :enquiry, :cache => [:comment] | ||
target :listing, :cache => [:title] | ||
end | ||
|
||
activity :new_enquiry_without_cache do | ||
actor :user | ||
object :enquiry | ||
target :listing | ||
end | ||
|
||
activity :new_comment do | ||
actor :user, :cache => [:full_name] | ||
object :listing | ||
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
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