daily pastebin goal
31%
SHARE
TWEET

Untitled

a guest Feb 20th, 2018 47 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class TasksController < ApplicationController
  2.   before_filter :find_tasks
  3.  
  4.   private
  5.  
  6.   find_tasks
  7.     Task.find_all_by_account_id(account_id)
  8.     # or if you have an account object... try to :include the tasks into that when it's loaded.
  9.   end
  10. end
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top