This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Pretty print your Ruby objects with style -- in full color and with proper indentation | |
# https://github.com/michaeldv/awesome_print | |
require 'awesome_print' | |
=begin | |
* Name: Beard Test App | |
* Description: Person Beard Scanner | |
* Author: @xhezairi & @korabh | |
* Date: Today | |
* License: MMV |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Google Direction API | |
include HTTParty | |
format :json | |
def api_key | |
# Your API key | |
end | |
def direciton_api_url |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module AuthApp | |
class CustomAuthentication < Devise::Strategies::Authenticatable | |
# This check is run before +authenticate!+ is called to determine if this | |
# authentication strategy is applicable. In this case we only try to authenticate | |
# if the login and password are present | |
# | |
def valid? | |
login && password | |
end |