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