Sha256: e2b79ac9777dfb086e58e69447a84d9069f8b82056edd7b5ab994b9cc5c8d3c7
Contents?: true
Size: 542 Bytes
Versions: 47
Compression:
Stored size: 542 Bytes
Contents
class Application < Rhosync::Base class << self def authenticate(username,password,session) session[:auth] = "delegated" raise RuntimeError.new('server error') if password == 'server error' raise LoginException.new('login exception') if password == 'wrongpass' password == 'wrongpassnomsg' ? false : true end # Add hooks for application startup here # Don't forget to call super at the end! def initializer(path) super end end end Application.initializer(File.dirname(__FILE__))
Version data entries
47 entries across 47 versions & 1 rubygems