lib/ramaze/helper/identity.rb in ramaze-0.3.5 vs lib/ramaze/helper/identity.rb in ramaze-0.3.9

- old
+ new

@@ -1,24 +1,23 @@ # Copyright (c) 2008 Michael Fellinger m.fellinger@gmail.com # All files in this distribution are subject to the terms of the Ruby license. -require 'tmpdir' require 'openid' require 'openid/store/filesystem' require 'openid/extensions/pape' module Ramaze - openid_store_file = File.join(Dir.tmpdir, 'openid-store') + openid_store_file = ::File.join(Dir.tmpdir, 'openid-store') # Constant for storing meta-information persistent OpenIDStore = OpenID::Store::Filesystem.new(openid_store_file) # This is called Identity to avoid collisions with the original openid.rb # It provides a nice and simple way to provide and control access over the # OpenID authentication model. - module IdentityHelper + module Helper::Identity # Simple form for use or overwriting. # Has to provide the same functionality when overwritten or directly # embedded into a page. def openid_login_form(caption="login")