fix generator problem. allow no auth
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user