The code below makes it impossible to use Basic Auth anywhere else in your app once the lighthouse API gem is included.
Why not set self.user and self.password on the Lighthouse::Base which inherits from ActiveResource?
module ActiveResource
class Connection
private
def authorization_header
(Lighthouse.email || Lighthouse.password ? { 'Authorization' => 'Basic ' + ["#{Lighthouse.email}:#{Lighthouse.password}"].pack('m').delete("\r\n") } : {})
end
end
end