Skip to content
This repository was archived by the owner on Nov 28, 2018. It is now read-only.
jasondewPublic archive

About

Named instances for Rails

Resources

Stars

7 stars

Watchers

0 watching

Forks

Latest commit

 

History

18 Commits

Folders and files

Repository files navigation

Provides support for named instances in Rails.

Quick usage:

class Diagnosis < ActiveRecord::Base
  has_named_instances :name
end

Diagnosis.create :name => "Diabetes Mellitus"

>> Diagnosis.get(:diabetes_mellitus)
=> #<Diagnosis id: 52, name: "Diabetes Mellitus", created_at: "2009-10-07 15:41:50", updated_at: "2009-10-07 15:41:50">

Patches welcome, enjoy!

Copyright © 2009 - 2010 Jason Dew. See LICENSE for details.

About

Named instances for Rails

Resources

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages