Module: Biteable
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/biteable.rb
Instance Method Summary collapse
Instance Method Details
#authenticate ⇒ Object
8 9 10 11 12 13 14 15 16 |
# File 'lib/biteable.rb', line 8 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 |