mysociety/alaveteli

View on GitHub
app/models/info_request/response_gatekeeper/base.rb

Summary

Maintainability
A
0 mins
Test Coverage
class InfoRequest
  module ResponseGatekeeper
    class Base
      attr_reader :info_request, :allow, :reason

      def initialize(info_request)
        @info_request = info_request
        @allow = true
        @reason = nil
      end

      def allow?(_email)
        allow
      end

      def rejection_action
        info_request.handle_rejected_responses
      end
    end
  end
end