Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
warm_city
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
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mykhailo Makohin
warm_city
Commits
f4a37c54
Commit
f4a37c54
authored
Sep 13, 2019
by
Mykhailo Makohin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
little fix in home and dashboard controllers
parent
b0d50fc7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
12 deletions
+0
-12
dashboard.rb
app/admin/dashboard.rb
+0
-7
application_controller.rb
app/controllers/application_controller.rb
+0
-5
No files found.
app/admin/dashboard.rb
View file @
f4a37c54
...
...
@@ -31,13 +31,6 @@ ActiveAdmin.register_page "Dashboard" do
controller
do
# before_action :authenticate_user!
load_and_authorize_resource
def
index
puts
'============================'
puts
current_user
.
present?
puts
current_user
.
admin?
puts
'============================'
end
end
end
# content
end
app/controllers/application_controller.rb
View file @
f4a37c54
...
...
@@ -12,9 +12,4 @@ class ApplicationController < ActionController::Base
def
authenticate_user!
redirect_to
root_path
,
notice:
'Для подальшої роботи з системою Вам потрібно авторизуватися'
unless
user_signed_in?
end
def
access_denied
(
exception
)
redirect_to
root_path
,
alert:
exception
.
message
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