# Proc with block containing boolean constant

**URL:** <https://www.ruby-forum.com/t/proc-with-block-containing-boolean-constant/191750>\
**Category:** Rails\
**Created:** [July 17, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/proc-with-block-containing-boolean-constant/191750 "2010-07-17T16:12:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![god\_gav](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/g/f07891/32.png) [@god\_gav](https://www.ruby-forum.com/u/god_gav)\
**Post date:** [July 17, 2010, 4:12pm UTC](https://www.ruby-forum.com/t/proc-with-block-containing-boolean-constant/191750/1 "2010-07-17T16:12:38Z")

</div>

Hi, I encountered with strange behavior in Rails 2.2.2 using Proc with  
boolean constant in block. When I’m evaluating expression Proc.new{  
false }.call from rails console it returns true, but in application the  
same expression returns nil
