class ActionController::MiddlewareStack::Middleware
def valid?(action)
def valid?(action) if @only.present? @only.include?(action) elsif @except.present? !@except.include?(action) else true end end
def valid?(action) if @only.present? @only.include?(action) elsif @except.present? !@except.include?(action) else true end end