check database connection #40
This commit is contained in:
parent
57fac45dd7
commit
495024021e
2
init.rb
2
init.rb
@ -38,7 +38,7 @@ Redmine::Plugin.register :additionals do
|
|||||||
RedCloth3::ALLOWED_TAGS << 'div'
|
RedCloth3::ALLOWED_TAGS << 'div'
|
||||||
end
|
end
|
||||||
|
|
||||||
if ActiveRecord::Base.connection.table_exists?(:settings)
|
if ActiveRecord::Base.connection.active? && ActiveRecord::Base.connection.table_exists?(:settings)
|
||||||
Rails.configuration.to_prepare do
|
Rails.configuration.to_prepare do
|
||||||
Additionals.setup
|
Additionals.setup
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user