Skip to content

Commit

Permalink
Fix problem with hide_action
Browse files Browse the repository at this point in the history
  • Loading branch information
etagwerker committed Jul 27, 2019
1 parent 5b0f603 commit fac05d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
4 changes: 1 addition & 3 deletions app/controllers/application_controller.rb
Expand Up @@ -10,14 +10,12 @@ class ApplicationController < ActionController::Base
before_action :set_seen_cookie_message, if: :show_cookie_message?
helper_method :show_cookie_message?, :public_petition_facets

hide_action :admin_request?
protected

def admin_request?
false
end

protected

def authenticate
authenticate_or_request_with_http_basic(Site.name) do |username, password|
Site.authenticate(username, password)
Expand Down
4 changes: 1 addition & 3 deletions config/initializers/delayed_web.rb
Expand Up @@ -7,14 +7,12 @@
Delayed::Web::ApplicationController.class_eval do
include Authentication, FlashI18n

hide_action :admin_request?
protected

def admin_request?
true
end

protected

def admin_login_url
main_app.admin_login_url
end
Expand Down

0 comments on commit fac05d4

Please sign in to comment.