private Method

Base.supports_local_assigns?(render_symbol, local_assigns)

Return true if the given template was compiled for a superset of the keys in local_assigns

Source Code

# File action_view/base.rb, line 528
def supports_local_assigns?(render_symbol, local_assigns)
  local_assigns.empty? ||
    ((args = @@template_args[render_symbol]) && local_assigns.all? { |k,_| args.has_key?(k) })
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.