From b910579d6e7476fb79300bf0c0abaee1f66be13e Mon Sep 17 00:00:00 2001 From: AntonioTerceiro Date: Sat, 1 Dec 2007 17:10:16 +0000 Subject: [PATCH] ActionItem93: minor doc work --- app/models/profile.rb | 5 +++++ 1 file changed, 5 insertions(+), 0 deletions(-) diff --git a/app/models/profile.rb b/app/models/profile.rb index c25c563..73da1f6 100644 --- a/app/models/profile.rb +++ b/app/models/profile.rb @@ -126,6 +126,11 @@ class Profile < ActiveRecord::Base # finds a profile by its identifier. This method is a shortcut to # +find_by_identifier+. + # + # Examples: + # + # person = Profile['username'] + # org = Profile.['orgname'] def [](identifier) self.find_by_identifier(identifier) end -- libgit2 0.21.2