Flowdock
method

to_json

Importance_1
Ruby on Rails latest stable (v4.0.2) - 0 notes - Class: Enumerable

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v2.3.2) is shown here.

These similar methods exist in v4.0.2:

to_json(options = {}) public

Returns a JSON string representing the enumerable. Any options given will be passed on to its elements. For example:

  users = User.find(:all)
  # => users.to_json(:only => :name)

will pass the :only => :name option to each user.

Show source
Register or log in to add new notes.