Skip to content
This repository has been archived by the owner on May 2, 2024. It is now read-only.

Commit

Permalink
Fix duplicated application layout (#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
cjdenio authored Mar 1, 2024
1 parent 97f6a95 commit 851ae89
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
3 changes: 2 additions & 1 deletion app/controllers/admin_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
class AdminController < ApplicationController
nested_layouts "layouts/application"
layout "application"
nested_layouts "layouts/admin"

before_action :require_admin

Expand Down
2 changes: 1 addition & 1 deletion app/controllers/developers/applications_controller.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class Developers::ApplicationsController < ApplicationController
nested_layouts "layouts/admin", "layouts/application"
nested_layouts "layouts/admin"

before_action do
@developers = true
Expand Down
4 changes: 2 additions & 2 deletions app/controllers/domains_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class DomainsController < ApplicationController
skip_before_action :require_admin, except: [:create, :transfer]

helper DnsimpleHelper
nested_layouts "layouts/admin", "layouts/domain", "layouts/application", except: [:index, :request_domain, :show]
nested_layouts "layouts/admin", "layouts/application", only: [:index, :request_domain]
nested_layouts "layouts/admin", "layouts/domain", except: [:index, :request_domain, :show]
nested_layouts "layouts/admin", only: [:index, :request_domain]

def index
@domains = Domain.where(user_users_id: current_user.id)
Expand Down

0 comments on commit 851ae89

Please sign in to comment.