Module: MultiAuth::ActiveRecord::ClassMethods
- Defined in:
- lib/multi_auth/active_record.rb
Instance Method Summary collapse
Instance Method Details
#multi_auth(options = { }) ⇒ Object
5 6 7 8 9 10 11 |
# File 'lib/multi_auth/active_record.rb', line 5 def multi_auth( = { }) class_eval do has_many :open_id_credentials, :foreign_key => 'user_id', :dependent => :destroy has_many :email_credentials, :foreign_key => 'user_id', :dependent => :destroy has_many :name_credentials, :foreign_key => 'user_id', :dependent => :destroy end end |