0.0
Low commit activity in last 3 years
No release in over a year
With minimal set up ActiveSync presents limited rails model interfaces within the JS font end. Records accessed are kept updated through action cable.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 3.5.5
>= 0
~> 1.4

Runtime

>= 5.1.3
 Project Readme

ActiveSync

Dynamically created and updated front end models.

Active record adds an active record interface to your front end. Configured models are available within your Javascript application with many active record type functions such as 'where'.

Records are lazy loaded and then dynamically updated through actioncable. So any records looked up through ActiveSync will be dynamically updated whether updated by the current user or any one else.

Currently the only Javascript framework supported is Vue

Usage

How to use my plugin.

Installation

Install gem

Add this line to your application's Gemfile:

gem 'active_sync'

And then execute:

$ bundle

Import package

In packs/application.js import active-sync and create an instance with a list of Models that you want available.

import ActiveSync from 'active-sync'

let activeSync = new ActiveSync({ modelNames: ['Customer', 'Site'] })

Vue setup

Before creating your Vue instance :

Vue.use( activeSync )

Then any new Vue instances will have Models globally available

Contributing

Contribution directions go here.

License

The gem is available as open source under the terms of the MIT License.