I would also just make this a getter.

```
def create
  likeable.likes.create
  redirect_to :back
end

def likeable
   klass = safe_likeable_class
  @likeable ||= klass.find(params[:likeable_id])
end
```