Skip to content

Instantly share code, notes, and snippets.

@solars
Created April 24, 2015 08:55
Show Gist options
  • Save solars/9bc224f20d44ef3d9524 to your computer and use it in GitHub Desktop.
Save solars/9bc224f20d44ef3d9524 to your computer and use it in GitHub Desktop.
unless room_stay.guest_room.room_type._?.non_smoking._?.blank?
puts "rs: #{room_stay.guest_room.room_type.inspect}"
puts 'XXXXXXXXXXXXXX'
end
results in :
rs: nil
XXXXXXXXXXXXXX
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment