Permalink
Browse files

hotspotlogin: use YAML.dump instead of #to_yaml

  • Loading branch information...
1 parent e889f37 commit bb97cf39dbe56ce83743dfb278be5212758caeb7 Guido De Rosa committed Apr 30, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 modules/hotspotlogin/lib/onboard/service/hotspotlogin.rb
View
4 modules/hotspotlogin/lib/onboard/service/hotspotlogin.rb
@@ -44,7 +44,7 @@ def save # use YAML, not Marshal, this time
FileUtils.mkdir_p File.dirname SAVEFILE
end
File.open SAVEFILE, 'w' do |f|
- f.write data.to_yaml
+ f.write YAML.dump data
end
FileUtils.chmod 0640, SAVEFILE
end
@@ -218,7 +218,7 @@ def change_from_HTTP_request!(params)
end
File.open CONFFILE, 'w' do |f|
- f.write conf_h.to_yaml
+ f.write YAML.dump conf_h
end
FileUtils.chmod 0640, CONFFILE
end

0 comments on commit bb97cf3

Please sign in to comment.