forked from OpenNeo/impress
show own/want on new items
This commit is contained in:
parent
5d3343bd6c
commit
ea4564569b
1 changed files with 1 additions and 0 deletions
|
@ -34,6 +34,7 @@ class ItemsController < ApplicationController
|
||||||
respond_to do |format|
|
respond_to do |format|
|
||||||
format.html {
|
format.html {
|
||||||
@newest_items = Item.newest.limit(18)
|
@newest_items = Item.newest.limit(18)
|
||||||
|
current_user.assign_closeted_to_items!(@newest_items) if user_signed_in?
|
||||||
}
|
}
|
||||||
format.js { render :json => {:error => '$q required'}}
|
format.js { render :json => {:error => '$q required'}}
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue