named_instances 0.0.1 → 0.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +3 -0
  2. data/VERSION +1 -1
  3. data/named_instances.gemspec +1 -1
  4. metadata +1 -1
@@ -5,9 +5,12 @@ Provides support for named instances in Rails.
5
5
  Quick usage:
6
6
 
7
7
  class Diagnosis < ActiveRecord::Base
8
+ include NamedInstances
8
9
  has_named_instances :name
9
10
  end
10
11
 
12
+ Diagnosis.create :name => "Diabetes Mellitus"
13
+
11
14
  >> Diagnosis.get(:diabetes_mellitus)
12
15
  => #<Diagnosis id: 52, name: "Diabetes Mellitus", created_at: "2009-10-07 15:41:50", updated_at: "2009-10-07 15:41:50">
13
16
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{named_instances}
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Jason Dew"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: named_instances
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Dew