Module: ActiveRecord::Serialization

Defined in:
lib/to-javascript/serializer.rb

Defined Under Namespace

Classes: JavascriptSerializer

Instance Method Summary collapse

Instance Method Details

#to_js(options = {}) ⇒ Object

converts an object to executable javascript code (not json)



5
6
7
# File 'lib/to-javascript/serializer.rb', line 5

def to_js(options = {})
  JavascriptSerializer.new(self, options).to_s
end