Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- >> Deployment.find(:all, :order=>:deployed_at).select {|d| !d.deployed_by.blank?}.count
- => 7
- >> Deployment.find(:all, :order=>:deployed_at).select {|d| d.deployed_by.blank?}.count
- => 88
- >> Deployment.find(:all, :order=>:deployed_at).select {|d| !d.deployed_by.blank?}.first.deployed_at
- => Fri, 29 Oct 2010 12:44:40 UTC +00:00
- >> Deployment.find(:all, :order=>:deployed_at).select {|d| !d.deployed_by.blank?}.last.deployed_at
- => Fri, 29 Oct 2010 13:09:12 UTC +00:00
- >>
Add Comment
Please, Sign In to add comment