Cross Reference: users_controller.rb
xref
: /
ontohub
/
app
/
controllers
/
admin
/
users_controller.rb
Home
History
Annotate
Line#
Navigate
Download
Search
only in
./
users_controller.rb revision 11e3e71d0daa6ae89049b081d7d8d1de91873a7d
class
Admin
::
UsersController
<
InheritedResources
::
Base
before_filter
:
authenticate_admin
!
respond_to
:
json
, :
xml
has_scope
:
email_search
has_pagination
with_role
:
admin
def
update
update
!
do
|
format
|
format.html
do
resource.skip
_reconfirmation
!
resource.update
_attributes
({
email
:
params
[
'user'
][
'email'
],
name
:
params
[
'user'
][
'name'
],
admin
:
params
[
'user'
][
'admin'
] ==
'1'
},
without_protection
:
true
)
target_page
=
if
params
[:
back_url
].
blank
?
collection_url
else
params
[:
back_url
]
end
redirect_to
(
target_page
)
end
end
end
end