Skip to content

Commit

Permalink
Update run_level.rb
Browse files Browse the repository at this point in the history
  • Loading branch information
nimmolo committed Feb 22, 2024
1 parent 930d963 commit 9069b27
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/classes/run_level.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@
# Class used by "rake location", QueuedEmail and autologger (in AbstractModel)
# to turn event logging and email notifications off.
class RunLevel
@@runlevel = :normal
@runlevel = :normal

def self.normal
@@runlevel = :normal
@runlevel = :normal
end

def self.silent
@@runlevel = :silent
@runlevel = :silent
end

def self.is_normal?
@@runlevel == :normal
@runlevel == :normal
end
end

0 comments on commit 9069b27

Please sign in to comment.