Changesets can be listed by changeset number.
The Git repository is here.
Changeset 443
More efficient equivalent of part of Changeset #442.
- Comitted by: rool
- Date: Friday August 30 07:52:14 2013 (over 11 years ago)
Affected files:
rool/rails/beast/trunk/app/controllers/posts_controller.rb:
prev. | current | |
class PostsController < ApplicationController | ||
before_filter :find_post, :except => [:index, :index_rss, :create, :monitored, :search] | ||
3 | | |
3 | @@query_options = { :select => 'posts.*, topics.title as topic_title, forums.name as forum_name', :joins => 'inner join topics on posts.topic_id = topics.id inner join forums on topics.forum_id = forums.id', :order => 'posts.created_at desc' } | |
@@hubssolib_permissions = HubSsoLib::Permissions.new({ | ||
:new => [ :admin, :webmaster, :privileged, :normal ], | ||
... | ... | |
end | ||
def per_page | ||
146 | | |
147 | | |
148 | ||
149 | | |
146 | { :per_page => [params[:posts_per_page].to_i, 25].max } | |
end | ||
end |