lib/i18n_screwdriver/translation.rb in i18n_screwdriver-6.0 vs lib/i18n_screwdriver/translation.rb in i18n_screwdriver-7.0

- old
+ new

@@ -1,10 +1,10 @@ module I18nScrewdriver class Translation < String attr_accessor :text, :options def self.new(text, options = {}, &block) - translation = super(options[:raw] ? text : I18n.translate(I18nScrewdriver.for_key(text), options)) + translation = super(options[:raw] ? text : I18nScrewdriver.translate(text, options)) translation.text = text translation.options = options if block urls = Array(block.call)