Sha256: 71b12959d628511183ecdcbf8cb81d612a8c9471674906b1dbb8118550b12f5d

Contents?: true

Size: 335 Bytes

Versions: 8

Compression:

Stored size: 335 Bytes

Contents

class ApplicationController < ActionController::Base
  protect_from_forgery
  
  protected
  
  def authenticate
    authenticate_or_request_with_http_basic do |username, password|
      username == "admin" && password == "p4ss"
    end
    # Only needed if Devise is running
    # warden.custom_failure! if performed?
  end
  
  
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
sushifish-0.9.6 lib/generators/sushi/templates/application_controller.rb
sushifish-0.9.0 lib/generators/sushi/templates/application_controller.rb
creature-0.0.6 lib/generators/pages/templates/application_controller.rb
creature-0.0.5 lib/generators/pages/templates/application_controller.rb
creature-0.0.4 lib/generators/pages/templates/application_controller.rb
creature-0.0.3 lib/generators/pages/templates/application_controller.rb
creature-0.0.2 lib/generators/pages/templates/application_controller.rb
creature-0.0.1 lib/generators/pages/templates/application_controller.rb