Permalink
Browse files

don't aggregate if not asked to

  • Loading branch information...
1 parent 8b81ba8 commit 116e240f0d209c89a47cf1b0628078a7eefcfbb6 @davidhq davidhq committed Jul 26, 2009
Showing with 1 addition and 7 deletions.
  1. +1 −7 lib/asbestos.rb
View
@@ -97,13 +97,7 @@ def _aggregates
def _write_pair(key, value, aggregate = false)
key = key.to_s.gsub('-', '_')
- if aggregate
- key = key.pluralize
- @target[key] ||= []
- @target[key] << value
- else
- @target[key] = value
- end
+ aggregate ? (@target[key.pluralize] ||= []) << value : @target[key] = value
end
def _new_hash

0 comments on commit 116e240

Please sign in to comment.