This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def authenticate_with_open_id(identifier = nil, options = {}, &block) #:doc: | |
| raise "Test" | |
| OpenID::Util.logger.info "Authenticating with open id" + identifier | |
| identifier ||= open_id_identifier | |
| if request.env[Rack::OpenID::RESPONSE] | |
| complete_open_id_authentication(&block) | |
| else | |
| begin_open_id_authentication(identifier, options, &block) | |
| end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class CommentsController < ApplicationController | |
| include UrlHelper | |
| OPEN_ID_ERRORS = { | |
| :missing => "Sorry, the OpenID server couldn't be found", | |
| :canceled => "OpenID verification was canceled", | |
| :failed => "Sorry, the OpenID verification failed" } | |
| before_filter :find_post, :except => [:new] | |
| def index |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| if (NON_NEGATIVE.containsInteger(startRecord) | |
| && NON_NEGATIVE.containsInteger(endRecord) | |
| && olbRequest.isDirtyFlag()) | |
| { | |
| String orderBy = olbRequest.getOrderBy(); | |
| if (NON_NEGATIVE.containsInteger(categoryId) | |
| && customerId != null) | |
| { | |
| results = getAcctHistoryByCategory(tpc, startDate, endDate, orderBy, startRecord, endRecord, categoryId, customerId, aid); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| it "should return Saved when passed params" do | |
| post :update, :content => {"content", "Seniors"} | |
| response.should contain("Saved") | |
| end |
NewerOlder