Skip to content

Instantly share code, notes, and snippets.

@gogogarrett
Created November 10, 2012 23:03
Show Gist options
  • Save gogogarrett/4052884 to your computer and use it in GitHub Desktop.
Save gogogarrett/4052884 to your computer and use it in GitHub Desktop.
class Comment < ActiveRecord::Base
def self.build_from object, user_id, comment
# method_stuff_here
end
class << self
def build_from object, user_id, comment
# method_stuff_here
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment