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
# spec/support/auth_helper.rb | |
module AuthHelper | |
def admin_login | |
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('username', 'password') | |
end | |
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
# spec/support/auth_helper.rb | |
module AuthHelper | |
def admin_login | |
request.env['HTTP_AUTHORIZATION'] = ActionController::HttpAuthentication::Basic.encode_credentials('username', 'password') | |
end | |
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
def self.find(*args) | |
ret = nil | |
if args.first.is_a? Symbol | |
if args.first == :all | |
ret = Array.new | |
if args[1].is_a? Hash | |
Company.all.each do |a| | |
tests = Array.new | |
args[1][:conditions].each do |atr, cond| | |
if a.read_attribute(atr) != cond |
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
Logging implemented for: | |
- campaign/step_2 on offer update | |
- campaign/step_4 on offer update | |
- campaign/step_5 on campaign create, invoice address | |
- offer/confirmation on campaign status change | |
- vetting/accept on campaign review | |
- vetting/approve | |
- vetting/reject |
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
;;; gist.el --- Emacs integration for gist.github.com | |
;; Author: Christian Neukirchen <purl.org/net/chneukirchen> | |
;; Maintainer: Chris Wanstrath <[email protected]> | |
;; Contributors: | |
;; Will Farrington <[email protected]> | |
;; Michael Ivey | |
;; Phil Hagelberg | |
;; Dan McKinley | |
;; Version: 0.5 |
NewerOlder