I have an entry in my db which is a boolean field (true / false).
Field archived. When archived correctly, all of this works fine to output true:
Rails.logger.info @commentable.archived
Rails.logger.info @commentable.archived?
Rails.logger.info !!@commentable.archived?
BUT, when the archived value is false, it does not output anything to any of the above. How can I get false output when the field is FALSE?
thank
source
share