Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions app/controllers/gadgets_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@ class GadgetsController < ApplicationController
before_filter :authenticate_user!

def index
# testing houng PRs

# is the extra line detected? :trollface:

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Trailing whitespace detected.

# sorts collection
@search = Gadget.belonging_to(current_user.id).search(params[:q])
@all_gadgets = @search.result.page(params[:page]).per_page(10).order("created_at DESC")
Expand Down