lib/generators/dry_crud/templates/app/controllers/crud_controller.rb
# Get an I18n flash message, considering _html keys as well.
# Uses the key {controller_name}.{action_name}.flash.{state}
# or crud.{action_name}.flash.{state} as fallback.
Get an I18n flash message, considering _html keys as well.
Get an I18n flash message considering _html keys as well .
def flash_message(state)
    scope = "#{action_name}.flash.#{state}"
    keys = [:"#{controller_name}.#{scope}_html",
            :"#{controller_name}.#{scope}",
            :"crud.#{scope}_html",
            :"crud.#{scope}"]
    @@helper.t(keys.shift, :model => full_entry_label, :default => keys)
  end
def flash_message ( state ) scope = "#{action_name}.flash.#{state}" keys = [ :" #{ controller_name } . #{ scope } _html " , :" #{ controller_name } . #{ scope } " , :" crud. #{ scope } _html " , :" crud. #{ scope } " ] @@helper . t ( keys . shift , :model => full_entry_label , :default => keys ) end
Get an I18n flash message, considering _html keys as well.
Get an I18n flash message considering _html keys as well .
state