heylium_app/app/helpers/application_helper.rb
Nicolas Bally 8e18de4077 initial
2016-08-03 00:22:29 +02:00

15 lines
243 B
Ruby
Executable File

module ApplicationHelper
def flash_js
r = raw ("$('#flashs').append('"+ escape_javascript(bootstrap_flash) +"');flash_delay();")
flash[:notice] = nil
flash[:error] = nil
flash[:success] = nil
r
end
end