Skip to content

Commit

Permalink
Lint fix
Browse files Browse the repository at this point in the history
  • Loading branch information
radical-ube committed May 9, 2024
1 parent 6112a95 commit a40cf7c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/models/feed/apple_subscription.rb
Expand Up @@ -64,22 +64,22 @@ def self.build_apple_config(podcast, key)
end

def unchanged_defaults
return unless self.persisted?
return unless persisted?

if title_changed? || slug_changed?
errors.add(:feed, "cannot change properties once set")
end
end

def only_apple_feed
existing_feed = Feed.where(podcast_id: self.podcast_id, type: "Feed::AppleSubscription")
existing_feed = Feed.where(podcast_id: podcast_id, type: "Feed::AppleSubscription")
if existing_feed.present?
errors.add(:podcast, "cannot have more than one apple subscription")
end
end

def must_be_private
if self.private != true
if private != true
errors.add(:feed, "must be a private feed")
end
end
Expand Down

0 comments on commit a40cf7c

Please sign in to comment.