Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class WallMessage < ActiveRecord::Base
- belongs_to :account
- has_many :wall_comments, :dependent => :destroy
- has_many :comments, :through => :wall_comments
- end
- class WallComment < ActiveRecord::Base
- belongs_to :wall_message
- belongs_to :comment, :class_name => "WallMessage", :foreign_key => "comment_id"
- end
Add Comment
Please, Sign In to add comment