search for: current_domain

Displaying 3 results from an estimated 3 matches for "current_domain".

Did you mean: current_domains
2006 Aug 08
2
send_file problem
...lic/images/logo.png /usr/lib/ruby/gems/1.8/gems/actionpack-1.12.1/lib/action_controller/streaming.rb:55:in `send_file'' I''ve tried supplying the full path, but it still can''t seem to find the file. Here is the code that calls send_file: def current_logo unless current_domain and current_domain.logo send_file ''/var/www/guruza/public/images/logo.png'', :type => ''image/png'', :disposition => ''inline'' else send_data current_domain.logo, :filename => current_domain.filename, :type => "ima...
2006 Dec 21
1
need some guidance with a test
This is part of a rails project. The following method is part of the Ams class (a rails model). I''m a bit unsure of the rspec/bdd way of testing this method. def persist_as_domains @current_domains.each do |d| dom = Domain.new dom.domain = d dom.source_id = 1 dom.at = Time.now dom.save end end The following is what came out when I tried to write my test. Notice that the only thing I''m testing here is that each method is called a certain number of times. This d...
2011 Nov 28
6
xenoprof patch for oprofile-0.9.7
I am rebasing Fedora rawhide oprofile package to oprofile-0.9.7. The xenoprof patches on http://xenoprof.sourceforge.net/#download look a bit dated. The newest version is for oprofile-0.9.5. I massaged the patch oprofile-0.9.5-xen.patch to apply to oprofile-.0.9.7. Attached is that updated patch. Does this look reasonable? Is there a desire to get this into upstream oprofile? Or should the