Hi,
I've frozen the merb-auth-slice-password slice in my app to overwrite
app/controllers/sessions.rb of the slice.
I wanted to overwrite the update method and it looks like this:
def update
"Add an after filter to do stuff after login"
execute_my_code_own_code_here if true
end
I've noticed that if the update method returns nil, it crashes merb
with this error:
Read error: #<NoMethodError: undefined method `each' for nil:NilClass>
... gems/gems/merb-core-1.0.11/lib/merb-core/rack/stream_wrapper.rb:
18:in `each'
So I've forced the update method to return "" to prevent that error.
Am I doing something wrong?
Thanks!
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---