mirror of
https://github.com/we-promise/sure.git
synced 2026-04-19 03:54:08 +00:00
* Add holdings tab to account view * Basic portfolio UI * Cleanup * Handle missing holding data * Remove synced at (implemented in separate pr) * translations * Tweak post sync streams * Remove stale methods from merge conflict
24 lines
434 B
Ruby
24 lines
434 B
Ruby
class Account::HoldingsController < ApplicationController
|
|
layout "with_sidebar"
|
|
|
|
before_action :set_account
|
|
before_action :set_holding, only: :show
|
|
|
|
def index
|
|
@holdings = @account.holdings.current
|
|
end
|
|
|
|
def show
|
|
end
|
|
|
|
private
|
|
|
|
def set_account
|
|
@account = Current.family.accounts.find(params[:account_id])
|
|
end
|
|
|
|
def set_holding
|
|
@holding = @account.holdings.current.find(params[:id])
|
|
end
|
|
end
|