Uploaded image for project: 'Mongoid'
  1. Mongoid
  2. MONGOID-5770

Refactor RailsMDB to use more public Rails CLI API's

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • railsmdb-1.0
    • Affects Version/s: None
    • Component/s: railsmdb
    • None
    • Fully Compatible
    • Ruby Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      RailsMDB, in its first incarnation, relies heavily on monkeypatching Rails CLI internals in order to override task priorities and implementations. This is brittle, as we knew it would be.

      In researching and preparing for my Rails World talk about RailsMDB, I discovered the --template option for rails new, which is very much intended for our use case. We can't escape all monkeypatching, but if we lean on this --template option, I think we can get rid of some of the more egregious bits. It will also make it easier to present RailsMDB to a Rails audience, and justify our implementation to them.

            Assignee:
            jamis.buck@mongodb.com Jamis Buck
            Reporter:
            jamis.buck@mongodb.com Jamis Buck
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: