Use locals in responder. Responder now works out of the box with
Devise
This commit is contained in:
parent
4b61edad64
commit
395a3d7439
@ -13,7 +13,7 @@ module RablRails
|
||||
if get?
|
||||
controller.default_render rabl_options
|
||||
elsif post?
|
||||
controller.default_render rabl_options.merge!(status: :created, location: api_location)
|
||||
controller.default_render rabl_options.merge!(status: :created, location: api_location, locals: { resource: resource })
|
||||
else
|
||||
head :no_content
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user