Page Menu
Home
GRNET
Search
Configure Global Search
Log In
Files
F1966705
routes.rb
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Sun, May 17, 12:28 AM
Size
656 B
Mime Type
text/plain
Expires
Tue, May 19, 12:28 AM (1 d, 3 h)
Engine
blob
Format
Raw Data
Handle
383625
Attached To
rWEBDNS WebDNS (edet4)
routes.rb
View Options
Rails
.
application
.
routes
.
draw
do
# Override devise user removal
devise_scope
:users
do
delete
:users
,
to
:
redirect
(
'/'
)
end
devise_for
:users
root
to
:
redirect
(
'/domains'
)
resources
:domains
do
resources
:records
,
except
:
[
:index
,
:show
]
do
# Reuse records#update instead of introducing new controller actions
#
# rubocop:disable Style/AlignHash
put
:disable
,
to
:
'records#update'
,
on
:
:member
,
defaults
:
{
record
:
{
disabled
:
true
}
}
put
:enable
,
to
:
'records#update'
,
on
:
:member
,
defaults
:
{
record
:
{
disabled
:
false
}
}
# rubocop:enable Style/AlignHash
end
end
end
Event Timeline
Log In to Comment