summaryrefslogtreecommitdiff
path: root/app/helpers
diff options
context:
space:
mode:
authorluca-marie <ml.kochsiek@fu-berlin.de>2016-09-01 12:17:05 +0200
committerluca-marie <ml.kochsiek@fu-berlin.de>2016-09-01 14:19:14 +0200
commit92e7b90d619111fdaaf50ab0b8538c39605fe005 (patch)
tree8c72966a52302ea688574ef2476b3a959e4c576e /app/helpers
parentea3fc6ffbb8f90aff28ce56fe4432a8d3ff18caa (diff)
Updating the view and CSS, no pic and twitter handle in each tweet;
Displaying only 3 most tweets
Diffstat (limited to 'app/helpers')
-rw-r--r--app/helpers/twitter_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/twitter_helper.rb b/app/helpers/twitter_helper.rb
index d20b7da..834e5c6 100644
--- a/app/helpers/twitter_helper.rb
+++ b/app/helpers/twitter_helper.rb
@@ -18,6 +18,6 @@ module TwitterHelper
end
def tweets
- twitter_client.user_timeline(twitter_handle).select{ |tweet| tweet.text.start_with?('RT','@')==false}
+ twitter_client.user_timeline(twitter_handle).select{ |tweet| tweet.text.start_with?('RT','@')==false}.take(3)
end
end