instance method
with_metadata
Ruby on Rails 2.3.18
Since v2.3.18 Last seen in v2.3.18Signature
with_metadata(metadata, &block)
No documentation comment.
Parameters
-
metadatareq -
blockblock
Source
# File activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/metadata.rb, line 57
def with_metadata(metadata, &block)
result = yield
result.translation_metadata = result.translation_metadata.merge(metadata) if result
result
end
Defined in activesupport/lib/active_support/vendor/i18n-0.4.1/i18n/backend/metadata.rb line 57
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in I18n::Backend::Metadata