Commit 558d22ff9b9e19d0f5aa99377a2a3615880ac90c

Authored by AntonioTerceiro
1 parent a3482aaa

ActionItem93: minor doc work



git-svn-id: https://svn.colivre.coop.br/svn/noosfero/trunk@1000 3f533792-8f58-4932-b0fe-aaf55b0a4547
app/models/profile.rb
@@ -124,6 +124,8 @@ class Profile < ActiveRecord::Base @@ -124,6 +124,8 @@ class Profile < ActiveRecord::Base
124 124
125 class << self 125 class << self
126 126
  127 + # finds a profile by its identifier. This method is a shortcut to
  128 + # +find_by_identifier+.
127 def [](identifier) 129 def [](identifier)
128 self.find_by_identifier(identifier) 130 self.find_by_identifier(identifier)
129 end 131 end
test/unit/profile_test.rb
@@ -206,7 +206,6 @@ class ProfileTest &lt; Test::Unit::TestCase @@ -206,7 +206,6 @@ class ProfileTest &lt; Test::Unit::TestCase
206 assert_equal profile, Profile['testprofile'] 206 assert_equal profile, Profile['testprofile']
207 end 207 end
208 208
209 -  
210 private 209 private
211 210
212 def assert_invalid_identifier(id) 211 def assert_invalid_identifier(id)