Skip to content

Commit c90d6f3

Browse files
TalkativeTreejosler
authored andcommitted
Fix the blocks in the Conversation documentation
Shouldn't use each do {|convo| ... } syntax as it's wrong.
1 parent 20cfe5c commit c90d6f3

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

README.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -145,21 +145,21 @@ intercom.notes.find_all(:user_id => '123').each {|note| puts note.body}
145145
```ruby
146146
# FINDING CONVERSATIONS FOR AN ADMIN
147147
# Iterate over all conversations (open and closed) assigned to an admin
148-
intercom.conversations.find_all(:type => 'admin', :id => '7').each do {|convo| ... }
148+
intercom.conversations.find_all(:type => 'admin', :id => '7').each {|convo| ... }
149149
# Iterate over all open conversations assigned to an admin
150-
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => true).each do {|convo| ... }
150+
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => true).each {|convo| ... }
151151
# Iterate over closed conversations assigned to an admin
152-
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => false).each do {|convo| ... }
152+
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => false).each {|convo| ... }
153153
# Iterate over closed conversations for assigned an admin, before a certain moment in time
154-
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => false, :before => 1374844930).each do {|convo| ... }
154+
intercom.conversations.find_all(:type => 'admin', :id => 7, :open => false, :before => 1374844930).each {|convo| ... }
155155

156156
# FINDING CONVERSATIONS FOR A USER
157157
# Iterate over all conversations (read + unread, correct) with a user based on the users email
158-
intercom.conversations.find_all(:email => '[email protected]', :type => 'user').each do {|convo| ... }
158+
intercom.conversations.find_all(:email => '[email protected]', :type => 'user').each {|convo| ... }
159159
# Iterate over through all conversations (read + unread) with a user based on the users email
160-
intercom.conversations.find_all(:email => '[email protected]', :type => 'user', :unread => false).each do {|convo| ... }
160+
intercom.conversations.find_all(:email => '[email protected]', :type => 'user', :unread => false).each {|convo| ... }
161161
# Iterate over all unread conversations with a user based on the users email
162-
intercom.conversations.find_all(:email => '[email protected]', :type => 'user', :unread => true).each do {|convo| ... }
162+
intercom.conversations.find_all(:email => '[email protected]', :type => 'user', :unread => true).each {|convo| ... }
163163

164164
# FINDING A SINGLE CONVERSATION
165165
conversation = intercom.conversations.find(:id => '1')

0 commit comments

Comments
 (0)