Skip to content

Commit

Permalink
Move SiteSetting class to lib dir
Browse files Browse the repository at this point in the history
  • Loading branch information
gms-gs committed Nov 20, 2024
1 parent d20c7ab commit 0392369
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
13 changes: 0 additions & 13 deletions app/models/site_setting.rb

This file was deleted.

13 changes: 13 additions & 0 deletions lib/find/site_setting.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# frozen_string_literal: true

module Find
class SiteSetting
def self.cycle_schedule
RedisClient.current.get('cycle_schedule')&.to_sym || :real
end

def self.set(name:, value:)
RedisClient.current.set(name, value)
end
end
end

0 comments on commit 0392369

Please sign in to comment.