Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- I have a model called Business with a woman_owned field as boolean.
- why is this deleting all businesses, even ones that are woman_owned
- @businesses.delete_if { |x| x.woman_owned != 1 } unless session[:owner].blank?
Add Comment
Please, Sign In to add comment