Module: Amrita2View::Helper
- Includes:
- ActionView::Helpers::UrlHelper
- Defined in:
- lib/amrita2/rails_bridge.rb
Instance Method Summary collapse
Instance Method Details
#eval_in_view(&block) ⇒ Object
186 187 188 |
# File 'lib/amrita2/rails_bridge.rb', line 186 def eval_in_view(&block) view.instance_eval &block end |
#eval_in_view_without_escape(&block) ⇒ Object
190 191 192 |
# File 'lib/amrita2/rails_bridge.rb', line 190 def eval_in_view_without_escape(&block) Amrita2::SanitizedString[eval_in_view(&block)] end |
#view ⇒ Object
182 183 184 |
# File 'lib/amrita2/rails_bridge.rb', line 182 def view @view ||= Thread::current[:amrita_rails_view] end |