This project is archived and is in readonly mode.
ActiveRecord can't deserialize hashes with range keys
-
Steve Richert
I should mention that this is in Rails 2.3.3.
-
Steve Richert
Here's a patch that adds two tests:
- A passing test for serializing a run of the mill symbol/string hash
- A failing test attempting to deserialize a hash with a range key.
-
Scott Steadman
Actually this seems to be a problem with ruby:
begin: 1<br/> end: 5 excl: false : foo
irb(main):001:0> require 'yaml'
=> true irb(main):002:0> YAML::load(YAML::dump({1..5 => 'foo'}))
ArgumentError: syntax error on line 2, col -1:'
from /usr/local/ruby-1.8.6/lib/ruby/1.8/yaml.rb:133:in `load' from /usr/local/ruby-1.8.6/lib/ruby/1.8/yaml.rb:133:in `load' from (irb):2 -
Rohit Arondekar
- State changed from new to stale
- Importance changed from to
Marking ticket as stale. If this is still an issue please leave a comment with suggested changes, creating a patch with tests, rebasing an existing patch or just confirming the issue on a latest release or master/branches.
