title: undefined method error draper gem
body: <p>I am trying to user draper gem and looks like I set up just fine, however, when I call method inside my draper method, I get an "undefined method error" Here is what I have done so far.</p>
  
  <pre><code>gem 'draper'
  
  bundle install
  
  rails g decorator MyModel
  </code></pre>
  
  <p>in my Decorator, I have the follow code.</p>
  
  <pre><code>class TaskDecorator &lt; Draper::Decorator
    delegate_all
    decorates :task
  
    def dummy
  
      print "Hello World"
  
    end
  end
  </code></pre>
  
  <p>In my controller</p>
  
  <pre><code>  # GET /tasks/1
    # GET /tasks/1.json
    def show
      @task = TaskDecorator.find_by(:id =&gt; params[:id])
    end
  </code></pre>
  
  <p>My View</p>
  
  <pre><code>&lt;%= @task.dummy %&gt;
  </code></pre>
  
  <p>Run in the browser, I get the following error</p>
  
  <pre><code>undefined method `dummy' for #&lt;Task:0x007fad7a639d48&gt;
  </code></pre>
  
  <p>Any idea, what's wrong?</p>