Module: Ito
- Extended by:
- ActiveSupport::Concern
- Defined in:
- lib/ito.rb,
lib/ito/railtie.rb,
lib/ito/version.rb
Defined Under Namespace
Classes: Railtie
Constant Summary collapse
- VERSION =
'0.4.0'.freeze
Instance Method Summary collapse
Instance Method Details
#basic_auth ⇒ Object
10 11 12 13 14 |
# File 'lib/ito.rb', line 10 def basic_auth authenticate_or_request_with_http_basic do |user_name, password| user_name == ENV['USER_NAME'] && password == ENV['PASSWORD'] end end |