Sha256: 867637e11eed2409656ff6b1da4c9cff0d0d5d83a920d94781165dba025e88e3

Contents?: true

Size: 343 Bytes

Versions: 10

Compression:

Stored size: 343 Bytes

Contents

module MultiAuth
  module ActiveRecord
    module ClassMethods
      def multi_auth(options = { })
        class_eval do
          has_many :open_id_credentials, :foreign_key => 'user_id', :dependent => :destroy
          has_many :email_credentials, :foreign_key => 'user_id', :dependent => :destroy
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 2 rubygems

Version Path
okkez-multi_auth-0.1.0 lib/multi_auth/active_record.rb
multi_auth-0.1.0 lib/multi_auth/active_record.rb
okkez-multi_auth-0.0.7 lib/multi_auth/active_record.rb
multi_auth-0.0.7 lib/multi_auth/active_record.rb
okkez-multi_auth-0.0.6 lib/multi_auth/active_record.rb
multi_auth-0.0.6 lib/multi_auth/active_record.rb
okkez-multi_auth-0.0.5 lib/multi_auth/active_record.rb
multi_auth-0.0.5 lib/multi_auth/active_record.rb
okkez-multi_auth-0.0.4 lib/multi_auth/active_record.rb
multi_auth-0.0.4 lib/multi_auth/active_record.rb