I need to modify the code of a third-party gem, where and how to do?
Posted
by Freewind
on Stack Overflow
See other posts from Stack Overflow
or by Freewind
Published on 2010-06-13T07:47:28Z
Indexed on
2010/06/13
7:52 UTC
Read the original article
Hit count: 450
ruby-on-rails
|gems
I'm building a website based on RoR, and using a third-party gem "devise". I have used rake gems:unpack
to unpack the "devise" to my "vendor/gems" directory. Now, I found the method "SessionsController.create" provided by "devise" is not fit my requirement, and I want to modify it.
But I don't know what it is best way:
- just modify the method SessionsController.create" directly?
- create another SessionsController and override the "create" method?
© Stack Overflow or respective owner