Class: Spree::Billing::UsersController

Inherits:
BaseController
  • Object
show all
Defined in:
app/controllers/spree/billing/users_controller.rb

Instance Method Summary collapse

Methods inherited from BaseController

#collection_url, #current_vendor, #default_url_options, #edit_object_url, #handle_unauthorized_vendor, #page, #per_page, #required_vendor_user!, #set_locale, #switch_vendor, #vendors

Methods included from SpreeCmCommissioner::Billing::RoleAuthorization

#auth_action, #auth_entry, #auth_user, #authorize!, #authorize?, #authorize_admin, #authorize_role!, #redirect_unauthorized_access

Instance Method Details

#indexObject



4
5
6
7
# File 'app/controllers/spree/billing/users_controller.rb', line 4

def index
  @search = Spree::User.ransack(params[:q])
  @users = @search.result.page(page).per(per_page)
end

#model_classObject



10
11
12
# File 'app/controllers/spree/billing/users_controller.rb', line 10

def model_class
  Spree::User
end

#object_nameObject



14
15
16
# File 'app/controllers/spree/billing/users_controller.rb', line 14

def object_name
  'user'
end