Sha256: 38a0cb5005a796820a0d96345f9af3e30a6e906306edb57a506ddff42dabd67a
Contents?: true
Size: 210 Bytes
Versions: 38
Compression:
Stored size: 210 Bytes
Contents
module Sugar module Actioncontroller def flash_message(klass, message) message = "#{controller_name}.messages.#{message}" if message.is_a?(Symbol) flash[klass] = t(message) end end end
Version data entries
38 entries across 38 versions & 2 rubygems