Class: AdminNotice

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/admin_notice.rb

Instance Method Summary collapse

Instance Method Details

#messageObject



9
10
11
12
13
14
# File 'app/models/admin_notice.rb', line 9

def message
  I18n.t(
    "dashboard.#{subject}.#{identifier}",
    **details.symbolize_keys.merge(base_path: Discourse.base_path),
  )
end