Skip to content

Commit

Permalink
Merge pull request #335 from blackcandy-org/fix-334
Browse files Browse the repository at this point in the history
Fix #334
  • Loading branch information
aidewoode committed Jan 3, 2024
2 parents 81019e0 + 2819d14 commit cfc9657
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/setting.rb
Expand Up @@ -20,6 +20,8 @@ class Setting < ApplicationRecord
private

def media_path_exist
return if media_path.nil?

errors.add(:media_path, :blank) and return if media_path.blank?

path = File.expand_path(media_path)
Expand Down

0 comments on commit cfc9657

Please sign in to comment.