Sha256: c489bd115e3a42cef66f4cb0993b2879965313e29b81d292840b0f9b3ca0429a

Contents?: true

Size: 596 Bytes

Versions: 22

Compression:

Stored size: 596 Bytes

Contents

class Application < Rhoconnect::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'
      return "different" if password == "diffuser"
      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

22 entries across 22 versions & 1 rubygems

Version Path
rhoconnect-3.2.1 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0.beta5 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0.beta4 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0.beta3 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0.beta2 spec/apps/rhotestapp/application.rb
rhoconnect-3.2.0.beta1 spec/apps/rhotestapp/application.rb
rhoconnect-3.1.2 spec/apps/rhotestapp/application.rb
rhoconnect-3.1.1 spec/apps/rhotestapp/application.rb
rhoconnect-3.1.0 spec/apps/rhotestapp/application.rb
rhoconnect-3.1.0.beta2 spec/apps/rhotestapp/application.rb
rhoconnect-3.1.0.beta1 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.6 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.5 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.4 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.3 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.2 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.1 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.0 spec/apps/rhotestapp/application.rb
rhoconnect-3.0.0.rc1 spec/apps/rhotestapp/application.rb