Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A gem that makes ActiveRecord subclasses on the fly

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 lib
Octocat-spinner-32 test
Octocat-spinner-32 Manifest
Octocat-spinner-32 README
Octocat-spinner-32 Rakefile
Octocat-spinner-32 auto_ar.gemspec
README
This gem makes subclasses of ActiveRecord::Base and
sets associations(has_many, belongs_to) to the class on demand.

  require 'rubygems'
  require 'active_record'
  require 'auto_ar'

  ActiveRecord::Base.establish_connection(:adapter => 'sqlite3',
                                          :database => 'foo.sqlite3')

  blogs = Blog.find(:all) # <= You can use Blog class without blog.rb
  comments = blog[0].comments # <= You can get Comment class instances without comment.rb

Something went wrong with that request. Please try again.