Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class ReviewCard
- include Interactor
- def call
- translation = context.translation
- card = Card.find(context.id)
- if card.translated_text.downcase ==
- translation.downcase
- card.refresh_review_date
- else
- context.fail!(message 'Bad')
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement