Skip to content

Commit

Permalink
FIX: исправляет ошибки при создании канала
Browse files Browse the repository at this point in the history
  • Loading branch information
owlscatcher committed Feb 20, 2024
1 parent 12693ec commit 19224ab
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/controllers/concerns/channel_concern.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ def channel_index
def channel_create
@channel = Channel.new(channel_params)

@channel.event_datetime = Time.now
@channel.is_online = true

if @channel.save
redirect_back(fallback_location: root_path)
else
Expand Down

0 comments on commit 19224ab

Please sign in to comment.