Class: Spree::Admin::UsersController
Instance Attribute Summary
#title
Instance Method Summary
collapse
belongs_to, create, #create, destroy, #destroy, #edit, #new, new_action, #update, update
#access_forbidden, included
Instance Method Details
#dismiss_banner ⇒ Object
15
16
17
18
19
20
|
# File 'app/controllers/spree/admin/users_controller.rb', line 15
def dismiss_banner
if request.xhr? and params[:banner_id]
current_user.dismiss_banner(params[:banner_id])
render :nothing => true
end
end
|
#index ⇒ Object
8
9
10
11
12
13
|
# File 'app/controllers/spree/admin/users_controller.rb', line 8
def index
respond_with(@collection) do |format|
format.html
format.json { render :json => json_data }
end
end
|