Class: KiqrController

Inherits:
ApplicationController show all
Defined in:
app/controllers/kiqr_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#default_url_options

Instance Method Details

#kiqr_flash_message(type, message, **kwargs) ⇒ Object



5
6
7
# File 'app/controllers/kiqr_controller.rb', line 5

def kiqr_flash_message(type, message, **kwargs)
  flash[type] = I18n.t("flash_messages.#{message}", **kwargs)
end

#kiqr_flash_message_now(type, message, **kwargs) ⇒ Object



9
10
11
# File 'app/controllers/kiqr_controller.rb', line 9

def kiqr_flash_message_now(type, message, **kwargs)
  flash.now[type] = I18n.t("flash_messages.#{message}", **kwargs)
end