diff options
author | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-01 12:17:05 +0200 |
---|---|---|
committer | luca-marie <ml.kochsiek@fu-berlin.de> | 2016-09-01 14:19:14 +0200 |
commit | 92e7b90d619111fdaaf50ab0b8538c39605fe005 (patch) | |
tree | 8c72966a52302ea688574ef2476b3a959e4c576e /app/helpers/twitter_helper.rb | |
parent | ea3fc6ffbb8f90aff28ce56fe4432a8d3ff18caa (diff) |
Updating the view and CSS, no pic and twitter handle in each tweet;
Displaying only 3 most tweets
Diffstat (limited to 'app/helpers/twitter_helper.rb')
-rw-r--r-- | app/helpers/twitter_helper.rb | 2 |
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 |