mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 05:33:40 +08:00
22 lines
308 B
Ruby
22 lines
308 B
Ruby
|
# frozen_string_literal: true
|
||
|
|
||
|
class ProblemCheck::RailsEnv < ProblemCheck
|
||
|
self.priority = "low"
|
||
|
|
||
|
def call
|
||
|
return no_problem if Rails.env.production?
|
||
|
|
||
|
problem
|
||
|
end
|
||
|
|
||
|
private
|
||
|
|
||
|
def translation_key
|
||
|
"dashboard.rails_env_warning"
|
||
|
end
|
||
|
|
||
|
def translation_data
|
||
|
{ env: Rails.env }
|
||
|
end
|
||
|
end
|