mirego/encore — pull request #5 by remiprev (2013-09-03 14:40:52+00:00)
Title: Add Entity#as_json

This pull request adds an `as_json` instance methods to entities, allowing us to use this type of code:

```ruby
def show
@entity = UserEntity.find(@user)
render json: @entity
end

protected

def fetch_user
@user = User.find(params[:id])
end
```