Skip to content

Instantly share code, notes, and snippets.

@bogdan
Created May 20, 2010 20:36
Show Gist options
  • Save bogdan/408060 to your computer and use it in GitHub Desktop.
Save bogdan/408060 to your computer and use it in GitHub Desktop.
class Inspiration < Feedback
belongs_to :user
belongs_to :group
belongs_to :inspired_group, :class_name => "Group", :foreign_key => "inspired_group_id"
#Will Paginate
cattr_reader :per_page
@@per_page = 10
end
# == Schema Information
#
# Table name: feedbacks
#
# id :integer not null, primary key
# user_id :integer
# group_id :integer
# body :text
# html :text
# type :string(255)
# inspired_group_id :integer
# created_at :datetime
# updated_at :datetime
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment