Skip to content

Commit

Permalink
Move update_start_time to concern
Browse files Browse the repository at this point in the history
  • Loading branch information
oliverguenther committed Nov 29, 2024
1 parent 8ff6d78 commit 31e0e46
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/meeting/app/models/meeting/virtual_start_time.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ module Meeting::VirtualStartTime

validate :validate_date_and_time
after_initialize :set_initial_values
before_save :update_start_time!
end

##
Expand Down
2 changes: 1 addition & 1 deletion modules/meeting/app/models/recurring_meeting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ class RecurringMeeting < ApplicationRecord
belongs_to :project
belongs_to :author, class_name: "User"

before_save :update_start_time!


Check notice on line 9 in modules/meeting/app/models/recurring_meeting.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/meeting/app/models/recurring_meeting.rb#L8-L9 <Layout/EmptyLines>

Extra blank line detected.
Raw output
modules/meeting/app/models/recurring_meeting.rb:8:1: C: Layout/EmptyLines: Extra blank line detected.
validates_presence_of :start_time, :title, :frequency, :end_after

Check notice on line 10 in modules/meeting/app/models/recurring_meeting.rb

View workflow job for this annotation

GitHub Actions / rubocop

[rubocop] modules/meeting/app/models/recurring_meeting.rb#L9-L10 <Layout/EmptyLines>

Extra blank line detected.
Raw output
modules/meeting/app/models/recurring_meeting.rb:9:1: C: Layout/EmptyLines: Extra blank line detected.
validates_presence_of :end_date, if: -> { end_after_specific_date? }
Expand Down

0 comments on commit 31e0e46

Please sign in to comment.