0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
Give cached access to ActiveRecord models for quicker and more readable data-based logic.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

Runtime

 Project Readme

Named Instances¶ ↑

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.