This is the base class Authlogic, where all modules are included. 4 # 5 class Base 6 include Foundation 7 include Callbacks 8 9 # Included first so that the session resets itself to nil 10 include Timeout 11 12 # Included in a specific order so they are tried in this order when persisting 13 include Params 14 include Cookies 15 include Session 16 include HttpAuth 17 18 # Included in a specific order so magic states gets ran after a record is found 19 include Password 20 include UnauthorizedRecord 21 include MagicStates 22 23 include Activation 24 include ActiveRecordTrickery 25 include BruteForceProtection 26 include Existence 27 include Klass 28 include MagicColumns 29 include PerishableToken 30 include Persistence 31 include Scopes 32 include Id 33 include Validation 34 include PriorityRecord 35 end 36 end 37 end
@app = app 5 end 6 7 def call(env) 8 # do something before the next middleware 9 # possibly modify the environment 10 11 # run the next middleware in the stack 12 @app.call(env) 13 14 # do something after the next middleware 15 end 16 end 17 end
@app = app 5 end 6 7 def call(env) 8 # do something before the next middleware 9 # possibly modify the environment 10 11 # run the next middleware in the stack 12 @app.call(env) 13 14 # do something after the next middleware 15 end 16 end 17 end
@app = app 5 end 6 7 def call(env) 8 # do something before the next middleware 9 # possibly modify the environment 10 11 # run the next middleware in the stack 12 @app.call(env) 13 14 # do something after the next middleware 15 end 16 end 17 end
@app = app 5 end 6 7 def call(env) 8 # do something before the next middleware 9 # possibly modify the environment 10 11 # run the next middleware in the stack 12 @app.call(env) 13 14 # do something after the next middleware 15 end 16 end 17 end
use VM::CheckAccessible 5 use VM::CheckBox 6 use VM::Import 7 use VM::CheckGuestAdditions 8 use VM::DefaultName 9 use VM::MatchMACAddress 10 use VM::CleanMachineFolder 11 use VM::ClearForwardedPorts 12 use VM::CheckPortCollisions 13 use VM::ForwardPorts 14 use VM::Provision 15 use VM::PruneNFSExports 16 use VM::NFS 17 use VM::ClearSharedFolders 18 use VM::ShareFolders 19 use VM::HostName 20 use VM::ClearNetworkInterfaces 21 use VM::Network 22 use VM::Customize 23 use VM::Boot 24 end
use VM::CheckAccessible 5 use VM::CheckBox 6 use VM::Import 7 use VM::CheckGuestAdditions 8 use VM::DefaultName 9 use VM::MatchMACAddress 10 use VM::CleanMachineFolder 11 use VM::ClearForwardedPorts 12 use VM::CheckPortCollisions 13 use VM::ForwardPorts 14 use VM::Provision 15 use VM::PruneNFSExports 16 use VM::NFS 17 use VM::ClearSharedFolders 18 use VM::ShareFolders 19 use VM::HostName 20 use VM::ClearNetworkInterfaces 21 use VM::Network 22 use VM::Customize 23 use VM::Boot 24 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end
4 self.invitation_token = nil 5 self.password = opts[:password] 6 self.password_confirmation = opts[:password_confirmation] 7 8 self.save 9 return unless self.errors.empty? 10 11 # moved old Invitation#share_with! logic into here, 12 # but i don't think we want to destroy the invitation 13 # anymore. we may want to just call self.share_with 14 invitations_to_me.each do |invitation| 15 if !invitation.admin? && invitation.sender.share_with(self.person, invitation.aspect) 16 invitation.destroy 17 end 18 end 19 20 self 21 end 22 end