From 63f3b8efac1576a90e8da004bb00fd75b50cf0c6 Mon Sep 17 00:00:00 2001 From: Sean Bailey Date: Sat, 19 Jan 2019 19:06:03 +1100 Subject: [PATCH 1/2] Fixed a bug with finding the current season --- app/models/season.rb | 2 +- config/locales/en.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/models/season.rb b/app/models/season.rb index 602c45c..2cb021f 100644 --- a/app/models/season.rb +++ b/app/models/season.rb @@ -32,6 +32,6 @@ def self.current(date = Time.zone.now) end def self.where_current(date = Time.zone.now) - Season.where('start_at <= ? AND end_at <= ?', date, date) + Season.where('start_at <= ? AND end_at >= ?', date, date) end end diff --git a/config/locales/en.yml b/config/locales/en.yml index 8a55d21..a300745 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -6,7 +6,7 @@ # available at http://guides.rubyonrails.org/i18n.html. en: - version: "version 1.2.3" + version: "version 1.2.4" notification: game: "You placed %{position} in Game #%{game} at the %{venue}." comment: "@%{sender} just commented on Game #%{game} at the %{venue}." From 5a4332b56332898035cee1de8454488a6f4c4b87 Mon Sep 17 00:00:00 2001 From: Sean Bailey Date: Sat, 19 Jan 2019 19:09:44 +1100 Subject: [PATCH 2/2] Updated release notes --- app/views/landing/release_notes.html.erb | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/app/views/landing/release_notes.html.erb b/app/views/landing/release_notes.html.erb index 4b574f5..a13f7ea 100644 --- a/app/views/landing/release_notes.html.erb +++ b/app/views/landing/release_notes.html.erb @@ -9,6 +9,17 @@

<%= t('landing.release_notes.title') %>

+ +
+

1.2.4January 19th, 2018

+
    +
  • +
    fixed
    +

    Resolved an issue where Seasons failed to be created. See <%= link_to '#164', 'https://github.com/sean0x42/riverrats.com.au/issues/164', class: 'anchor', target: '_blank' %>

    +
  • +
+
+

1.2.3December 13th, 2018