Title / Description
Code class User < ActiveRecord::Base has_one :profile has_and_belongs_to_many :channels, :join_table => "channel_subscriptions" has_many :clips_owner, :class_name => "Clip", :foreign_key => "owner" has_many :ingested_from_user, :class_name => "Clip", :foreign_key => "ingested_from" has_many :channel_owner, :class_name => "Channel", :foreign_key => "owner" has_many :roles has_many :group_owner, :class_name => "Group", :foreign_key => "owner" has_many :channel_subscriptions before_save :validate_profile extend MwActiveRecord::Class include MwActiveRecord::Instance end
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code