Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
ArtOfCode- committed May 12, 2021
1 parent e01675c commit 1b4688c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/site_setting.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def self.[](name)
end

def self.exist?(name)
Rails.cache.exist?("SiteSettings/#{RequestContext.community_id}/#{name}") || SiteSetting.where(name: name).count.positive?
Rails.cache.exist?("SiteSettings/#{RequestContext.community_id}/#{name}") ||
SiteSetting.where(name: name).count.positive?
end

def typed
Expand Down

0 comments on commit 1b4688c

Please sign in to comment.