Skip to content

Commit

Permalink
twitter username without an array
Browse files Browse the repository at this point in the history
  • Loading branch information
jeromegn committed Jun 15, 2015
1 parent 6e8c148 commit ac4f53c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/repository/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ def twitter
t = super
return [] if t.blank?
t.is_a?(Array) ? t : [JSON.parse(t)].flatten
rescue JSON::ParserError => exception
t
end

def self.dump(obj)
Expand Down

0 comments on commit ac4f53c

Please sign in to comment.