fix generator problem. allow no auth

This commit is contained in:
2023-10-23 20:10:44 +03:00
parent 9f6b5a878a
commit 60808aee26
5 changed files with 17 additions and 7 deletions

View File

@ -1,6 +1,11 @@
module Merged
class MergedController < ::ApplicationController
before_action :authenticate_member!
before_action :authenticate_if
layout "merged/application"
def authenticate_if
return unless respond_to? :"authenticate_member!"
authenticate_member!
end
end
end