I would like to replace the rails_multisite gem that comes with Discourse with my own
rails_multisite_federation. The existing one appears to be in the source folder under
Make my own Gem and add a line to
Gemfile that reads
- Bundles well. Can add to the existing bundle manifest pretty easily.
- Would seem to conflict with the existing built-in multisite gem.
- Seems like I need to have my Gem be aware of removing the other Gem via
railtie.rband ‘remove’ it.
- Remove the
rails_multisitefolder and replace it with the
Pros: Easy to work on while I have
vagrant upin my business.
Cons: I would have to modify the Discourse source and keep it updated on every pull.
- Edit the
rails_multisitecode directly. Same consequences of above.
What do you recommend? Is there a ‘best practices’ path?