Project

ARAA

0.0
No release in over 3 years
Low commit activity in last 3 years
Automatically build ActiveRecord relations for models based on Rails conventions
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

~> 6.0.2, >= 6.0.2.1
 Project Readme

App

ARAA (ActiveRecord Auto Associate) is a Gem that allows you to dynamically build your models associations without having to explicitly define them.

It does this by inspecting the defined schema via ActiveRecord and populates an initializer file. This file contains class declarations of your models that use re-open them and defines ActiveRecord relations.

This is generated via a Rake task.

Usage

rake araa:generate

Installation

Add this line to your application's Gemfile:

gem 'araa'

And then execute:

$ bundle

Or install it yourself as:

$ gem install araa

Contributing

Please feel free to contribute.

At the moment, I don't know how to test this... If anyone has experience testing the effects of a plugins effect on the dummy application I would love the insight.

License

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

Future

  • Tie into Migration event and rerun