Sha256: c86126aa4f595ba1309af7f0ea99a1a1e3d7676bb23ec2505fcad56f1689c24f
Contents?: true
Size: 284 Bytes
Versions: 5
Compression:
Stored size: 284 Bytes
Contents
class CardController # add support for passing api key through header using X-API-Key module ApiKey def authenticators super.merge api_key: api_key_from_header || params[:api_key] end def api_key_from_header request.headers["X-API-Key"] end end end
Version data entries
5 entries across 5 versions & 1 rubygems