chore: init commit
in worker.../repo/GITFOLDER.zip is the .git folder.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
# frozen_string_literal: true
|
||||
|
||||
class PortfoliosController < ApplicationController
|
||||
before_action :set_portfolio
|
||||
before_action :authenticate_user!
|
||||
|
||||
def show
|
||||
authorize @portfolio
|
||||
@stocks = @portfolio.stocks
|
||||
@earnings_summary = EarningsSummary.new(@portfolio)
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def set_portfolio
|
||||
@portfolio = Portfolio.find(params.expect(:id))
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user