require 'users/gems' # # Libraries # %w( open_id_authentication password_authentication ).each{|f| require "_models/#{f}"} %w( authenticated ).each{|f| require "_http_controller/#{f}"} class Rad::Users attr_accessor :open_id_store attr_writer :email, :host, :url_root, :port attr_required :email, :open_id_store def host; @host || rad.http.host end def url_root; @url_root || rad.http.url_root end def port; @port || rad.http.port end attr_accessor :avatars_path end # # Open ID # require '_open_id_authentication' rad.http.stack.push(-> builder { builder.use OpenIdAuthentication })