Benign gem 657,444 installs Download

render_parent 0.0.8

“Adds Rails "render :parent" helper, which renders template with the same name as current but higher on the view path”

Ruby class_eval call
SHA-25678409461a22c18f9fe81119f9fcdaf5538d5ce5029f074b9fb77f71fafa66286
MaleculeH(Po)

Evidence

Ruby class_eval call rails2.rb · lines 1–6
1require 'action_view/base'
2
3ActionView::Base.class_eval do
4 def render_parent_template(local_assigns = {}, &block)
5 view_paths.exclusions << template
6 result = render(:file => template.to_s, :locals => local_assigns, &block …
Ruby class_eval call on_load_action_controller.rb · lines 1–9
1require 'action_controller/base'
2
3ActionController::Base.class_eval do
4 def active_template_stack
5 @active_template_stack ||= []
⋯4 lines

No evidence locations were recorded for this file. Raw result

Keyboard shortcuts on this page: j for the next sample, k for the previous one, x to go back to the feed, d to download the original bytes, r to re-queue the sample for analysis.