Comments (14)
Yes. Since Mongoid uses ActiveModel, the callbacks would likely be the same, only the queries need to change.
from vanity.
+1
from vanity.
+1
Has there been any progress on this one?
from vanity.
looks like there is a mongodb adapter in lib/vanity/adapters/mongodb_adapter.rb
from vanity.
How do we use it?
from vanity.
you can configure vanity to use mongo by creating a configuration file. see: http://vanity.labnotes.org/rails.html
from vanity.
although, i could be wrong... as i have not tested it out and this issue seems to still be open?
from vanity.
this link is actually better: http://vanity.labnotes.org/configuring.html
from vanity.
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.
+1 Anyone have a working mongoid adapter?
from vanity.
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.
@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.
See https://github.com/assaf/vanity/tree/feature/mongoid
from vanity.
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)
- Vanity metrics generating a row for each call to track HOT 2
- Finish a/b test HOT 9
- Connection issues can go unnoticed with rails
- Getting an error from vanity when trying to update redis HOT 3
- Rails 5 Support HOT 4
- vanity.yml on CI HOT 3
- Redis gem version 4+ ==> Error when Vanity tries to call redis.client.disconnect! HOT 4
- failing to deploy to heroku HOT 3
- Progressive tests HOT 1
- Disable logs HOT 2
- use_vanity not working? HOT 2
- Vanity generator not found HOT 1
- Be able to configure default callbacks
- Update Jekyll and documentation generation
- Add rubocop HOT 4
- Be able to disable vanity for test. HOT 1
- "Preload" multiple experiment status/participation for a page
- Thoughts on improvements to the Vanity developer interface
- Appraisals don't actually test on Rails 6
- Collaborate on experimentation library concepts HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vanity.