Module: LocaleSchema::Rails::ActionView
- Included in:
- ActionView::Base
- Defined in:
- lib/locale_schema/rails/action_view.rb
Instance Method Summary collapse
Instance Method Details
#st(key, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/locale_schema/rails/action_view.rb', line 4 def st(key, ={}) translation = LocaleSchema::Translation.new( :key => key, :options => , :context => :views, :scope => "#{controller_path}/#{action_name}" ) s = translation.to_s s = s.html_safe if translation.html_safe? && s.respond_to?(:html_safe) s end |