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