namespace :accounts do

  task :fund=>:environment do
    if Date.today.day == 1 || Date.today.day == 15
      Household.all.each do |household|
        household.accounts.deferred.all.each(&:fund)
      end
    end
  end

end
namespace :accounts do

  task :fund=>:environment do
    if Date.today.day == 1 || Date.today.day == 15
      Household.all.each do |household|
        household.accounts.asset.where('budget > 0').each(&:fund)
      end
    end
  end

end
Fix saving funding rake task.
Fix saving funding rake task.
