From 5e54cc15b2f2aaa4d6b7b97ee91e73b20835f6e3 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Thu, 21 Dec 2023 09:12:27 +0000 Subject: Cleans up based on advice from neovim I installed LunaVim and it suggested that I do this stuff. --- app/models/event.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'app/models/event.rb') diff --git a/app/models/event.rb b/app/models/event.rb index 27f9aec..3f6881c 100644 --- a/app/models/event.rb +++ b/app/models/event.rb @@ -4,8 +4,8 @@ class Event < ApplicationRecord belongs_to :operation, optional: true - def month_year_check(year, month) - if self.date.year == year && self.date.month == month + def month_year_check(year, month) + if date.year == year && date.month == month true else false -- cgit v1.2.3