Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
veNJOB
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
2
Merge Requests
2
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Thanh Hung Pham
veNJOB
Commits
2f8b6e0a
Commit
2f8b6e0a
authored
Jul 10, 2017
by
Thanh Hung Pham
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix current page
parent
a93fa166
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
0 deletions
+11
-0
app/controllers/application_controller.rb
+11
-0
No files found.
app/controllers/application_controller.rb
View file @
2f8b6e0a
class
ApplicationController
<
ActionController
::
Base
before_action
:store_current_location
,
unless: :devise_controller?
protect_from_forgery
with: :exception
private
def
store_current_location
store_location_for
(
:user
,
request
.
url
)
end
def
after_sign_out_path_for
(
resource
)
request
.
referrer
||
root_path
end
end
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment