Skip to content

Commit

Permalink
Merge branch 'main' into dependabot/bundler/dotenv-rails-3.1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
zachgoll authored Dec 16, 2024
2 parents 48e0ca6 + bb9fa56 commit c31cf29
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ApplicationHelper
def date_format_options
[
[ "DD-MM-YYYY", "%d-%m-%Y" ],
[ "DD.MM.YY", "%d.%m.%Y" ],
[ "DD.MM.YYYY", "%d.%m.%Y" ],
[ "MM-DD-YYYY", "%m-%d-%Y" ],
[ "YYYY-MM-DD", "%Y-%m-%d" ],
[ "DD/MM/YYYY", "%d/%m/%Y" ],
Expand Down
2 changes: 1 addition & 1 deletion app/models/account/holding_calculator.rb
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def gapfill_holdings(holdings)
end

def trades
@trades ||= account.entries.includes(entryable: :security).account_trades.to_a
@trades ||= account.entries.includes(entryable: :security).account_trades.chronological.to_a
end

def portfolio_start_date
Expand Down
2 changes: 1 addition & 1 deletion app/models/family.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class Family < ApplicationRecord
include Plaidable, Syncable

DATE_FORMATS = [ "%m-%d-%Y", "%d-%m-%Y", "%Y-%m-%d", "%d/%m/%Y", "%Y/%m/%d", "%m/%d/%Y", "%e/%m/%Y", "%Y.%m.%d" ]
DATE_FORMATS = [ "%m-%d-%Y", "%d.%m.%Y", "%d-%m-%Y", "%Y-%m-%d", "%d/%m/%Y", "%Y/%m/%d", "%m/%d/%Y", "%e/%m/%Y", "%Y.%m.%d" ]

include Providable

Expand Down

0 comments on commit c31cf29

Please sign in to comment.