Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

Commit

Permalink
Use to_json for compat with AS/json issue
Browse files Browse the repository at this point in the history
@brianmario dies a little inside
  • Loading branch information
josh committed Dec 16, 2011
1 parent ca76c8f commit ce5ab76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sprockets/manifest.rb
Expand Up @@ -182,7 +182,7 @@ def find_asset(logical_path)
def save
FileUtils.mkdir_p dir
File.open(path, 'w') do |f|
f.write JSON.generate(@data)
f.write @data.to_json
end
end

Expand Down

2 comments on commit ce5ab76

@brianmario
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@brianmario
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's ok, the JSON gem had you cornered with no other way out :(

Please sign in to comment.