Permalink
Browse files

new yml, now without wack characters

  • Loading branch information...
1 parent d2d53d2 commit da9e2cef5c27c78d9749c3346db54c8919899bca @ethn ethn committed Dec 5, 2012
Oops, something went wrong.
Oops, something went wrong.
View
Oops, something went wrong.
@@ -5,7 +5,7 @@ users_001:
email: no-reply@wagn.org
crypted_password:
salt:
- created_at: 2012-12-01 22:01:25 Z
+ created_at: 2012-12-05 11:16:24 Z
updated_at: 2012-12-02 04:06:20 Z
password_reset_code:
status: system
@@ -19,7 +19,7 @@ users_002:
email:
crypted_password:
salt:
- created_at: 2012-12-01 22:01:25 Z
+ created_at: 2012-12-05 11:16:24 Z
updated_at: 2012-12-02 04:06:20 Z
password_reset_code:
status: system
@@ -77,6 +77,10 @@ namespace :wagn do
data = ActiveRecord::Base.connection.select_all( "select * from #{table}" )
file.write YAML::dump( data.inject({}) do |hash, record|
record['trash'] = false if record.has_key? 'trash'
+ if record.has_key? 'content'
+ record['content'] = record['content'].gsub /\u00A0/, ' '
+ # sych was handling nonbreaking spaces oddly. would not be needed with psych.
+ end
hash["#{table}_#{i.succ!}"] = record
hash
end)
Oops, something went wrong.

0 comments on commit da9e2ce

Please sign in to comment.