Guest User

Untitled

a guest
Jul 23rd, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. I have a model called Business with a woman_owned field as boolean.
  2.  
  3.  
  4. why is this deleting all businesses, even ones that are woman_owned
  5.  
  6. @businesses.delete_if { |x| x.woman_owned != 1 } unless session[:owner].blank?
Add Comment
Please, Sign In to add comment