Flowdock
method

from_json

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: ActiveModel::Serializers::JSON
from_json(json, include_root=include_root_in_json) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/serializers/json.rb, line 100
      def from_json(json, include_root=include_root_in_json)
        hash = ActiveSupport::JSON.decode(json)
        hash = hash.values.first if include_root
        self.attributes = hash
        self
      end
Register or log in to add new notes.