Class: UsersController

Inherits:
ApplicationController
  • Object
show all
Includes:
Curate::ThemedLayoutController
Defined in:
app/controllers/users_controller.rb

Instance Method Summary collapse

Methods included from Curate::ThemedLayoutController

#show_site_actions?, #show_site_search?

Instance Method Details

#devise_mapping ⇒ Object



17
18
19
# File 'app/controllers/users_controller.rb', line 17

def devise_mapping
  @devise_mapping ||= Devise.mappings[:user]
end

#edit ⇒ Object



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

def edit
  render 'registrations/edit'
end

#resource ⇒ Object



13
14
15
# File 'app/controllers/users_controller.rb', line 13

def resource
  @resource ||= User.find(params[:id])
end

#resource_name ⇒ Object



9
10
11
# File 'app/controllers/users_controller.rb', line 9

def resource_name
  :user
end