This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
namecase /
| name | age | message | |
|---|---|---|---|
| |
README | Thu May 01 20:08:56 -0700 2008 | [brandon] |
| |
Rakefile | Thu Oct 05 09:22:18 -0700 2006 | [brandon] |
| |
init.rb | Thu May 01 20:08:56 -0700 2008 | [brandon] |
| |
lib/ | Mon Jun 16 11:01:28 -0700 2008 | [brandon] |
| |
test/ | Thu May 01 20:08:56 -0700 2008 | [brandon] |
README
Namecase
========
This is a trivial plugin that tries to fix the case of a string if it is given a string that is all caps or all lower
case
class Person < ActiveRecord::Base
namecase :first_name, :on => :create
end
>> Person.create(:first_name => 'larry').first_name
=> "Larry"
>> Person.create(:first_name => 'ANNOYING').first_name
=> "Annoying"



