Skip to content

Commit

Permalink
include rentals on rentals#index (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
StoneFrog authored and Mandaryn committed Jul 3, 2017
1 parent 78cd1f0 commit 73826d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
### master

* Update appraisal gemfiles
* Fix N+1 query by including rentals on rentals#index
* Speed up javascript search on rentals index page

### 0.9.0 - 2016-12-25
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def index
@visible_rentals = current_account.rentals.visible
@remote_accounts = current_account.remote_accounts
@remote_rentals_by_account = current_account.remote_rentals.ordered
.includes(:remote_account).group_by(&:remote_account)
.includes(:remote_account, :rental).group_by(&:remote_account)
end

def show
Expand Down

0 comments on commit 73826d6

Please sign in to comment.