sambehera
sambehera

Reputation: 967

Can I use hyperstack without activerecord?

I use rethinkdb and nobrainer as my ODM. Will Hyperstack be in sync with my models? i.e. state syncing between the backend db and the frontend?

Upvotes: 1

Views: 92

Answers (1)

engineersmnky
engineersmnky

Reputation: 29598

As of right now HyperStack/HyperModel has a direct dependency to ActiveRecord so there is no real way to utilize this library without also using ActiveRecord as well.

Excerpt from hyper-model.gemspec

spec.add_dependency 'activerecord', '>= 4.0.0'

This seems to be due to the ActiveRecord API binding: https://hyperstack.org/edge/docs/dsl-isomorphic/models#activerecord-api

Hyperstack uses a subset of the standard ActiveRecord API to give your Isomorphic Components, Operations and Stores access to your server side Models. As much as possible Hyperstack follows the syntax and semantics of ActiveRecord.

Upvotes: 3

Related Questions