Skip to content

Instantly share code, notes, and snippets.

@tamizhgeek
Created May 30, 2012 12:57
Show Gist options
  • Save tamizhgeek/2836139 to your computer and use it in GitHub Desktop.
Save tamizhgeek/2836139 to your computer and use it in GitHub Desktop.
sample class AAA
class AAA < ActiveRecord::Base
belongs_to :parent, :class_name => "AAA", :foreign_key => "parent_id"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment