kaize/deadline_camp

View on GitHub
lib/flash_helper.rb

Summary

Maintainability
A
0 mins
Test Coverage
module FlashHelper
  def flash_translate(key)
    scope = [:flash, :controllers]
    scope += params[:controller].split('/')
    scope << params[:action]

    t(key, :scope => scope)
  end
end