lib/fb_graph/event.rb in fb_graph-2.7.10 vs lib/fb_graph/event.rb in fb_graph-2.7.11
- old
+ new
@@ -35,10 +35,10 @@
Time.parse(end_time)
when Integer
Time.at(end_time)
end
end
- if venue = attributes[:venue]
+ if (venue = attributes[:venue]).present?
@venue = if venue[:id]
Page.new(venue[:id], venue)
else
Venue.new(venue)
end