diff options
author | Rhenium <rhenium@rhe.jp> | 2013-12-16 12:44:15 +0900 |
---|---|---|
committer | Rhenium <rhenium@rhe.jp> | 2013-12-16 12:45:50 +0900 |
commit | 3b6b25ad0551f6f8bc2dcc8a3e3a2e9db3356fe4 (patch) | |
tree | 7c4abbdf4c3df33bacb295dcae45586403827b63 /app/models/tweet.rb | |
parent | a83895a7f2b5e8ccdb9eb216b3c3e2af1ef45835 (diff) | |
download | aclog-3b6b25ad0551f6f8bc2dcc8a3e3a2e9db3356fe4.tar.gz |
refactor settings
Diffstat (limited to 'app/models/tweet.rb')
-rw-r--r-- | app/models/tweet.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/tweet.rb b/app/models/tweet.rb index cc710e8..9952d74 100644 --- a/app/models/tweet.rb +++ b/app/models/tweet.rb @@ -40,7 +40,7 @@ class Tweet < ActiveRecord::Base def self.list(params, options = {}) count = params[:count].to_i - count = Settings.tweets.count_default unless (1..Settings.tweets.count_max) === count + count = Settings.tweets.count.default unless (1..Settings.tweets.count.max) === count if params[:page] || options[:force_page] page = [params[:page].to_i, 1].max |