Sha256: b15fdd10d69189f06a7ea6d46df59978442877df3550de033276a7de596f4e84
Contents?: true
Size: 417 Bytes
Versions: 1
Compression:
Stored size: 417 Bytes
Contents
module Biteable extend ActiveSupport::Concern included do before_filter :authenticate end def authenticate if request.params[:edit_page] authenticate_or_request_with_http_basic('Administration') do |username, password| @bite_authentication = username == ENV['BITES_USERNAME'] && password == ENV['BITES_PASSWORD'] end else @bite_authentication = false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
bites-1.0.0 | lib/biteable.rb |