Skip to content

Commit

Permalink
remove blank values from hash (fixes #12).
Browse files Browse the repository at this point in the history
  • Loading branch information
ethnt committed Apr 3, 2013
1 parent 78a0773 commit d099755
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/scholar/citation.rb
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,7 @@ def initialize(options = {})
@raw = @attributes.clone
@attributes.delete(:type)

@attributes.each do |k, v|
if v.blank?
@attributes.delete(v)
end
end
@attributes.delete_if { |k, v| v.empty? }

if @attributes[:contributors]
@attributes = Scholar::Utilities.contributors!(@attributes)
Expand Down

0 comments on commit d099755

Please sign in to comment.