Class: Hyrax::ArkivoConstraint

Inherits:
Object
  • Object
show all
Defined in:
lib/generators/hyrax/templates/config/arkivo_constraint.rb

Class Method Summary collapse

Class Method Details

.matches?(_request) ⇒ Boolean

Returns:

  • (Boolean)


3
4
5
6
7
8
9
# File 'lib/generators/hyrax/templates/config/arkivo_constraint.rb', line 3

def self.matches?(_request)
  # Add your own logic here to authorize trusted connections to
  # the API e.g., if your installation of Arkivo runs on a host
  # with the 10.0.0.3 IP address, you could use:
  # request.remote_ip == '10.0.0.3'
  false
end