From 29a3e8379f7920efee6a982f29ae9b316903fd10 Mon Sep 17 00:00:00 2001 From: nov Date: Wed, 1 Apr 2015 19:49:35 +0900 Subject: [PATCH] styling --- lib/fb_graph2/conversation.rb | 1 - lib/fb_graph2/edge/messages.rb | 8 ++++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/fb_graph2/conversation.rb b/lib/fb_graph2/conversation.rb index 2169dc9..98ec6e1 100644 --- a/lib/fb_graph2/conversation.rb +++ b/lib/fb_graph2/conversation.rb @@ -1,7 +1,6 @@ module FbGraph2 class Conversation < Node include Edge::Messages - register_attributes( raw: [:snippet, :message_count, :unread_count, :can_reply, :is_subscribed], time: [:updated_time], diff --git a/lib/fb_graph2/edge/messages.rb b/lib/fb_graph2/edge/messages.rb index 49b4c6d..77de45a 100644 --- a/lib/fb_graph2/edge/messages.rb +++ b/lib/fb_graph2/edge/messages.rb @@ -10,10 +10,10 @@ module FbGraph2 def messages(params = {}) messages = if @_cached_messages.present? && params.blank? - @_cached_messages - else - self.edge :messages, params - end + @_cached_messages + else + self.edge :messages, params + end messages.collect! do |message| Message.new(message[:id], message).authenticate self.access_token end