private Method

Partials.partial_variable_name(partial_name)

There's no documentation for this item.

Source Code

# File action_view/partials.rb, line 174
def partial_variable_name(partial_name)
  @@partial_variable_names ||= {}
  @@partial_variable_names[partial_name] ||=
    partial_name.split('/').last.split('.').first.intern
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.