Module: TranslateWithScope

Defined in:
lib/translate_with_scope.rb,
lib/translate_with_scope/version.rb

Constant Summary collapse

VERSION =
"0.0.1"

Instance Method Summary collapse

Instance Method Details

#translate_with_scope(key) ⇒ Object



4
5
6
# File 'lib/translate_with_scope.rb', line 4

def translate_with_scope(key)
  translate key, :scope => [params[:controller], params[:action]]
end