Last active
August 29, 2015 14:01
-
-
Save almaron/f08ad1e664e014a565d7 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 GuestPost < ActiveRecord::Base | |
require 'rails_autolink' | |
validates_presence_of :head, :content, :user | |
def apply_answer(answer=nil) | |
if answer.present? | |
@answer = auto_link(answer) | |
end | |
end | |
private | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment