0.0
A long-lived project that still receives updates
Provides secure endpoints to export info for Lazer Pro
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
 Dependencies

Runtime

>= 6.0
>= 6.0
 Project Readme

Lazer Ruby Gem

This gem provides a Rails engine that allows Lazer to import your app's scopes and Active Record relationships.

Installation

Add this line to your application's Gemfile:

gem 'lazer-rails'

Bundle, and restart your server.

bundle

Mount the engine:

# config/routes.rb
mount Lazer::Engine => "/api/lazer"

Add a new codebase in Lazer to get an API key, then set it as an environment variable:

LAZER_KEY=YOUR_API_KEY

How it works

This gem adds two endpoints to your app, one for scopes and one for relationships. It uses the API key for authentication.

The Lazer app will hit these endpoints periodically so that your Lazer instance stays up to date.