lib/eol.rb
# used to check if a user agent is a robot or not
used to check if a user agent is a robot or not
used to check if a user agent is a robot or not
def allowed_user_agent?(user_agent)
      return true if user_agent.nil? 
      if user_agent.downcase =~ /googlebot|slurp/
        return false
      else
        return true
      end
    end
def allowed_user_agent? ( user_agent ) return true if user_agent . nil? if user_agent . downcase =~ / googlebot|slurp / return false else return true end end
used to check if a user agent is a robot or not
used to check if a user agent is a robot or not
# When you run specs, it's nil!
user_agent
<not_specific>