Changeset 5487
- Timestamp:
- 11/11/06 18:29:11 (2 years ago)
- Files:
-
- trunk/actionpack/CHANGELOG (modified) (1 diff)
- trunk/actionpack/lib/action_view/helpers/prototype_helper.rb (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/CHANGELOG
r5482 r5487 1 1 *SVN* 2 3 * Remove JavaScriptLiteral in favor of ActiveSupport::JSON::Variable. [Sam Stephenson] 2 4 3 5 * Sync ActionController::StatusCodes::STATUS_CODES with http://www.iana.org/assignments/http-status-codes. #6586 [dkubb] trunk/actionpack/lib/action_view/helpers/prototype_helper.rb
r5438 r5487 392 392 # expression as an argument to another JavaScriptGenerator method. 393 393 def literal(code) 394 JavaScriptLiteral.new(code)394 ActiveSupport::JSON::Variable.new(code.to_s) 395 395 end 396 396 … … 686 686 end 687 687 callbacks 688 end689 end690 691 # Bypasses string escaping so you can pass around raw JavaScript692 class JavaScriptLiteral < String #:nodoc:693 def to_json694 to_s695 688 end 696 689 end