Class: Dcmgr::Models::FrontendSystem::RemoteIP
- Inherits:
-
Dcmgr::Models::FrontendSystem
- Object
- Sequel::Model
- BaseNew
- Dcmgr::Models::FrontendSystem
- Dcmgr::Models::FrontendSystem::RemoteIP
- Defined in:
- lib/dcmgr/models/frontend_system.rb
Constant Summary
Constants inherited from BaseNew
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 |