diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-21 09:12:27 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-21 09:12:27 +0000 |
commit | 5e54cc15b2f2aaa4d6b7b97ee91e73b20835f6e3 (patch) | |
tree | 8f1e18e2dfdc127b1d1bba84361bfa38a87519ec | |
parent | 8152b66ea52909f634fb77092bf383d91017f05c (diff) |
Cleans up based on advice from neovim
I installed LunaVim and it suggested that I do this stuff.
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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 |