Skip to content

Commit

Permalink
Added .active scopes to proverbs and photos controllers
Browse files Browse the repository at this point in the history
  • Loading branch information
profh committed Apr 20, 2012
1 parent 20d88c1 commit 53d1db0
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 52 deletions.
50 changes: 0 additions & 50 deletions app/controllers/articles_controller.rb

This file was deleted.

2 changes: 1 addition & 1 deletion app/controllers/photos_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class PhotosController < ApplicationController

def index
@photos = Photo.alphabetical.paginate(:page => params[:page]).per_page(5)
@photos = Photo.active.alphabetical.paginate(:page => params[:page]).per_page(5)
end


Expand Down
2 changes: 1 addition & 1 deletion app/controllers/proverbs_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
class ProverbsController < ApplicationController

def index
@proverbs = Proverb.alphabetical.paginate(:page => params[:page]).per_page(10)
@proverbs = Proverb.alphabetical.active.paginate(:page => params[:page]).per_page(10)
end


Expand Down

0 comments on commit 53d1db0

Please sign in to comment.