title: Calling helper method in services
body: <p>Can't seem to call this helper method from a service I created. They look like this:</p>
  
  <pre><code># app/controllers/application_controller.rb
  class ApplicationController &lt; ActionController::Base
    helper_method :activate_session_with_id
  
   def activate_session_with_id(domain, token)
     #do some stuff
   end
  end
  </code></pre>
  
  <p>My service looks like:</p>
  
  <pre><code># app/services/fulfillment_order.rb
  class FulfillmentOrder
    def create_order_user_fulfilled
      shop = Shop.find_by(shopify_domain: @domain)
      shop_token = shop.shopify_token
      ApplicationController.helpers.activate_shopify_session_with_id(@domain, shop_token)
    end
  end
  </code></pre>
  
  <p>When I do that, I get this error </p>
  
  <pre><code>NoMethodError  (undefined method activate_shopify_session_with_id
  </code></pre>
  
  <p>I also tried to call the helper method straight up, like this:</p>
  
  <pre><code>activate_shopify_session_with_id(@domain, shop_token)
  </code></pre>
  
  <p>No luck with either way. Where did I go astray?</p>