lib/fb_graph/event.rb in fb_graph-1.8.0 vs lib/fb_graph/event.rb in fb_graph-1.8.1
- old
+ new
@@ -12,10 +12,10 @@
attr_accessor :owner, :name, :description, :start_time, :end_time, :location, :venue, :privacy, :updated_time
def initialize(identifier, attributes = {})
super
if (owner = attributes[:owner])
- @owner = User.new(owner.delete(:id), owner)
+ @owner = User.new(owner[:id], owner)
end
@name = attributes[:name]
@description = attributes[:description]
@location = attributes[:location]
@privacy = attributes[:privacy]
\ No newline at end of file