Skip to content

Commit

Permalink
These methods aren't used in this controller at all...
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed May 1, 2012
1 parent 5eadccf commit d47d7f2
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions app/controllers/searches_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,4 @@ def show
set_pagination_buttons(@updates)
end
end

# DERP, this duplication sucks, and this code kinda sucks
# anyway. Let's see if we can't remove it in the future.
def set_pagination
set_params_page
@updates = @updates.paginate(:page => params[:page], :per_page => params[:per_page], :order => :created_at.desc)
set_pagination_buttons(@updates)
end

# Render correct haml depending on request type
def render_index(updates)
@updates = updates
set_pagination
render :index, :layout => show_layout?
end
end

0 comments on commit d47d7f2

Please sign in to comment.