Skip to content

Instantly share code, notes, and snippets.

@alexfedoseev alexfedoseev/comment.rb Secret
Last active Aug 29, 2015

Embed
What would you like to do?
Rails API model
# app/models/comment.rb
class Comment < ActiveRecord::Base
validates_presence_of :author, :comment
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.