Created
April 24, 2019 06:53
-
-
Save balvig/01c9cfcf49ed625ac826431c6c7c2a0d to your computer and use it in GitHub Desktop.
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
class Event | |
def visitor | |
User.last # hardcoded for now | |
end | |
def action | |
"liked" # hardcoded for now | |
end | |
def recipe | |
Recipe.last # hardcoded for now | |
end | |
def featured_visitor_recipe | |
visitor.recipes.last # undecided how to feature a recipe | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment