Sha256: 8124f1c3a1a629e787192bf9819d8afb4041cb5c41b18d0b375a09b184742237
Contents?: true
Size: 293 Bytes
Versions: 1
Compression:
Stored size: 293 Bytes
Contents
module Passport module Mixin def self.included(base) base.extend ClassMethods end module ClassMethods def has_passport include Passport::User end end end end ActiveRecord::Base.send(:include, Passport::Mixin) if defined?(ActiveRecord::Base)
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
passport-0.1.1 | lib/passport/helpers/mixin.rb |