Feature #21421 » 0001-Store-user-s-IP-address-for-the-duration-of-the-requ.patch
| app/controllers/application_controller.rb | ||
|---|---|---|
|
end
|
||
|
end
|
||
|
end
|
||
|
# store current ip address in user object ephemerally
|
||
|
user.remote_ip = request.remote_ip if user
|
||
|
user
|
||
|
end
|
||
| app/models/user.rb | ||
|---|---|---|
|
attr_accessor :password, :password_confirmation, :generate_password
|
||
|
attr_accessor :last_before_login_on
|
||
|
attr_accessor :remote_ip
|
||
|
# Prevents unauthorized assignments
|
||
|
attr_protected :login, :admin, :password, :password_confirmation, :hashed_password
|
||
| config/locales/de.yml | ||
|---|---|---|
|
error_password_expired: Your password has expired or the administrator requires you
|
||
|
to change it.
|
||
|
field_time_entries_visibility: Time logs visibility
|
||
|
field_remote_ip: IP-Adresse
|
||
|
label_parent_task_attributes: Parent tasks attributes
|
||
|
label_parent_task_attributes_derived: Calculated from subtasks
|
||
|
label_parent_task_attributes_independent: Independent of subtasks
|
||
| config/locales/en.yml | ||
|---|---|---|
|
field_time_entries_visibility: Time logs visibility
|
||
|
field_total_estimated_hours: Total estimated time
|
||
|
field_default_version: Default version
|
||
|
field_remote_ip: IP address
|
||
|
setting_app_title: Application title
|
||
|
setting_app_subtitle: Application subtitle
|
||