Created
August 16, 2017 20:13
-
-
Save frostmark/31fafb5834c9026f06fb7d35f4c89f7c to your computer and use it in GitHub Desktop.
testing modules in isolated
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 Answer < ApplicationRecord | |
include Policy | |
belongs_to :question | |
belongs_to :user | |
validates :body, presence: true | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment