Sha256: 5249b01556146760149b4a4617f12b22c4711c9ada83e672cfb448204ad9f478
Contents?: true
Size: 598 Bytes
Versions: 1
Compression:
Stored size: 598 Bytes
Contents
module I18nScrewdriver module Rails module Helper def self.included(klass) klass.send :include, InstanceMethods end module InstanceMethods def _(text, options = {}) I18n.translate(I18nScrewdriver.for_key(text), options) end end end end end ActionView::Base.send :include, I18nScrewdriver::Rails::Helper ActionController::Base.send :include, I18nScrewdriver::Rails::Helper ActionController::IntegrationTest.send :include, I18nScrewdriver::Rails::Helper ActionController::TestCase.send :include, I18nScrewdriver::Rails::Helper
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n_screwdriver-1.0.0 | lib/i18n_screwdriver/rails/helper.rb |