intridea/grape — pull request #232 by lestercsp (2012-08-22 15:11:49+00:00)
Title: Exposures that have been given both a :proc and an :if/:unless still shows that attribute even when criteria is not met

Hi, I just came across this issue when declaring entities with both a block and criteria

Given we have this:

```ruby
module API
class Bacon < Grape::Entity
expose :strips, :proc => lambda { | model, options |
"Bacon strips!"
}, :if => lambda { | model, options | false }
end
end

```
The attribute :strips is still shown.

This pull request fixes this issue. Please let me know if I missed anything important :)