Fixing up stack too deep issue on Rails 3