Project

General

Profile

« Previous | Next » 

Revision ac6b81a5

Added by Michael Moll almost 6 years ago

Refs #23776 - correct deprecation for notice

View differences:

app/controllers/concerns/foreman/controller/flash.rb
included do
add_flash_types :inline, :success, :info, :warning, :error
def notice(message, options = default_flash_options)
Foreman::Deprecation.deprecation_warning("1.20", "please migrate notice() to success() or info()")
success(message, options)
end
def success(message, options = default_flash_options)
flash_message(:success, message, options)
end

Also available in: Unified diff