Class: Dcmgr::Models::FrontendSystem::RemoteIP

Inherits:
Dcmgr::Models::FrontendSystem show all
Defined in:
lib/dcmgr/models/frontend_system.rb

Constant Summary

Constants inherited from BaseNew

BaseNew::LOCK_TABLES_KEY

Instance Method Summary collapse

Methods inherited from BaseNew

Proxy, dataset, default_row_lock_mode=, install_data, install_data_hooks, lock!, #to_hash, unlock!, #with_timestamps?

Instance Method Details

#authenticate(env) ⇒ Object



26
27
28
# File 'lib/dcmgr/models/frontend_system.rb', line 26

def authenticate(env)
  self.key == env['HTTP_REMOTE_ADDR']
end