Commit b910579d6e7476fb79300bf0c0abaee1f66be13e

Authored by AntonioTerceiro
1 parent 558d22ff

ActionItem93: minor doc work



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1001 3f533792-8f58-4932-b0fe-aaf55b0a4547
Showing 1 changed file with 5 additions and 0 deletions   Show diff stats
app/models/profile.rb
... ... @@ -126,6 +126,11 @@ class Profile < ActiveRecord::Base
126 126  
127 127 # finds a profile by its identifier. This method is a shortcut to
128 128 # +find_by_identifier+.
  129 + #
  130 + # Examples:
  131 + #
  132 + # person = Profile['username']
  133 + # org = Profile.['orgname']
129 134 def [](identifier)
130 135 self.find_by_identifier(identifier)
131 136 end
... ...