Sha256: 8c9eacbd93bb6d571b8ecfbbcf530092a6f8e47d407bcb39195d1ffc92e54b6f
Contents?: true
Size: 383 Bytes
Versions: 4
Compression:
Stored size: 383 Bytes
Contents
module JeraPush class Admin::AdminController < JeraPush::JeraPushController before_filter :authenticate def authenticate if JeraPush.try(:admin_login) authenticate_or_request_with_http_basic do |username, password| username == JeraPush.admin_login[:username] && password == JeraPush.admin_login[:password] end end end end end
Version data entries
4 entries across 4 versions & 1 rubygems