private Method

GeneratorMethods.javascript_object_for(object)

There's no documentation for this item.

Source Code

# File action_view/helpers/prototype_helper.rb, line 962
def javascript_object_for(object)
  object.respond_to?(:to_json) ? object.to_json : object.inspect
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.