Skip to content

Commit

Permalink
"Updating Config to Toggle Throttler"
Browse files Browse the repository at this point in the history
  • Loading branch information
unknown authored and unknown committed Aug 19, 2008
1 parent 74917d9 commit aecf3dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/projects_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def index
@top_downloaded = Project.top_downloaded
@top_bookmarked = Project.top_bookmarked

if throttled?
if AppConfig.enable_throttle? and throttled? #throttled?
@tags = []
else
@tags = Project.tag_counts(:conditions => Project.in_gallery_conditions, :order => "name")
Expand Down
1 change: 1 addition & 0 deletions config/app_config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ site_name: "Open Source Rails"
site_url: "http://www.opensourcerails.com"
version: "v1.0"
require_email_activation: true
enable_throttle: false

blog_url: http://blog.opensourcerails.com

Expand Down

0 comments on commit aecf3dc

Please sign in to comment.