Skip to content

Commit

Permalink
Documentation for translate! method
Browse files Browse the repository at this point in the history
  • Loading branch information
Nathan Long committed Oct 11, 2011
1 parent 541a05f commit 5e2f7ed
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/i18n.rb
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,8 @@ def translate(*args)
end
alias :t :translate

# Wrapper for <tt>translate</tt> that adds <tt>:raise => true</tt>. With
# this option, if no translation is found, it will raise <tt>I18n::MissingTranslationData</tt>
def translate!(key, options={})
translate(key, options.merge(:raise => true))
end
Expand Down

0 comments on commit 5e2f7ed

Please sign in to comment.