Code Monkey home page Code Monkey logo

Comments (14)

assaf avatar assaf commented on August 25, 2024

Yes. Since Mongoid uses ActiveModel, the callbacks would likely be the same, only the queries need to change.

from vanity.

bramsdenteuling avatar bramsdenteuling commented on August 25, 2024

+1

from vanity.

djensen47 avatar djensen47 commented on August 25, 2024

+1

Has there been any progress on this one?

from vanity.

razic avatar razic commented on August 25, 2024

looks like there is a mongodb adapter in lib/vanity/adapters/mongodb_adapter.rb

from vanity.

djensen47 avatar djensen47 commented on August 25, 2024

How do we use it?

from vanity.

razic avatar razic commented on August 25, 2024

you can configure vanity to use mongo by creating a configuration file. see: http://vanity.labnotes.org/rails.html

from vanity.

razic avatar razic commented on August 25, 2024

although, i could be wrong... as i have not tested it out and this issue seems to still be open?

from vanity.

razic avatar razic commented on August 25, 2024

this link is actually better: http://vanity.labnotes.org/configuring.html

from vanity.

phillbaker avatar phillbaker commented on August 25, 2024

I think, longer-term, a goal would be to transition Vanity to using something like orm_adapter (https://github.com/ianwhite/orm_adapter), also used by Devise, for example.

from vanity.

AnalogJ avatar AnalogJ commented on August 25, 2024

+1 Anyone have a working mongoid adapter?

from vanity.

phillbaker avatar phillbaker commented on August 25, 2024

Would be very willing to merge a pull request that implemented this. Does
the existing mongo adapter provide a base that could be built on?

Are there a few folks who could help with testing an adapter when it gets
written?

On Thursday, November 7, 2013, Jason Kulatunga wrote:

+1 Anyone have a working mongoid adapter?


Reply to this email directly or view it on GitHubhttps://github.com//issues/26#issuecomment-28027427
.

from vanity.

phillbaker avatar phillbaker commented on August 25, 2024

@AnalogJ looks like @pritchie @secondporch have a mongoid solution, see secondporch@7e3ad04#commitcomment-4863039. Looks like it's mostly configuration changes for the existing Mongo adapter.

@AnalogJ, I can pull those changes into a branch if you could help me vet it out.

from vanity.

phillbaker avatar phillbaker commented on August 25, 2024

See https://github.com/assaf/vanity/tree/feature/mongoid

from vanity.

phillbaker avatar phillbaker commented on August 25, 2024

With the release of the merged mongo driver (https://www.mongodb.com/blog/post/announcing-ruby-driver-20-rewrite), I think the goal should be to move to update the existing mongo driver and skip supporting mongoid. Hard to believe this has been open for 5 years.

from vanity.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.