Comments (6)
At the moment I don't have time to add mongo db support to the gem, but it would be definitely cool. You can also fork the project and try it yourself.
If you have any questions, feel free to ask. :)
from acts_as_api.
Neither Rails nor ActiveRecord seems to be a hard requirement. Seems to work well with 'just' ActiveSupport::CoreExt::Class (for #read_inheritable_attribute), ActiveModel (for xml serialization), Json (for - surprise - json serialization) and Set. See here: https://gist.github.com/738005 :D
from acts_as_api.
Hi niko,
you're right. thanks for the helpful gist. :)
Today I took the first steps for mongoid support (but I still consider this as very experimental) and removed the active record dependency.
I opened a new branch for mongoid (https://github.com/fabrik42/acts_as_api/tree/mongoid) and also ported the example app to work with mongoid (https://github.com/fabrik42/acts_as_api_example/tree/mongoid).
I'm still a mongodb newbie, so I guess it will need a lot of further improvement and I'm thankful for any feedback.
from acts_as_api.
This one should probably be closed - current version of acts_as_api have support for mongoid :)
from acts_as_api.
I will close it as soon as I have some tests written for it and updated the documentation -> soon...
:)
from acts_as_api.
The new version 0.3.6
now supports mongoid support out of the box.
The specs cover exactly the same features as for ActiveRecord.
https://github.com/fabrik42/acts_as_api/wiki/acts_as_api-and-Mongoid
from acts_as_api.
Related Issues (20)
- Rails 5: undefined method `as_api_response' for ActiveRecord_Associations_CollectionProxy HOT 18
- NoMethodError render_for_api with rails 5 api app HOT 7
- DEPRECATION WARNING: Initialization autoloaded the constants ActionText::ContentHelper and ActionText::TagHelper.
- Dynamic template name in extend is not supported. HOT 1
- No options found for Remove functionality. not supporting if condition HOT 1
- InvalidURIError while deploying to heroku
- Rails 3 Responder: undefined method `list_url' HOT 1
- Ruby 2.0, Rails Mongoid, and NoMethodError (undefined method `empty?' for nil:NilClass) HOT 1
- Active Model support HOT 1
- Using class methods in api_accessible definition HOT 1
- Json with all Root nodes HOT 4
- new feature HOT 4
- respond_with not working with after_filter HOT 3
- Does not use model_name when using this without ORM HOT 3
- Parent Name under association HOT 3
- can't modify frozen Hash representing deleted AR objects HOT 1
- DateTime objects are truncating milliseconds HOT 5
- introduction: confuse links
- can i have json without root element? HOT 8
- Completely custom Json output 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 acts_as_api.