Module: ActiveRecord::Serialization
- Defined in:
- lib/to-javascript/serializer.rb
Defined Under Namespace
Classes: JavascriptSerializer
Instance Method Summary collapse
-
#to_js(options = {}) ⇒ Object
converts an object to executable javascript code (not json).
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( = {}) JavascriptSerializer.new(self, ).to_s end |