Class: Spree::Admin::UsersController

Inherits:
ResourceController show all
Defined in:
app/controllers/spree/admin/users_controller.rb

Instance Attribute Summary

Attributes included from Core::ControllerHelpers

#title

Instance Method Summary collapse

Methods inherited from ResourceController

belongs_to, create, #create, destroy, #destroy, #edit, #new, new_action, #update, update

Methods included from Core::ControllerHelpers

#access_forbidden, included

Instance Method Details

#dismiss_bannerObject



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

#indexObject



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