check for constant, otherwise this is always true
Merge pull request #515 from toadkicker/fix_activerecord_check

check for constant, otherwise this is always true