Skip to content

Commit

Permalink
Merge branch 'master' of github.com:diaspora/diaspora
Browse files Browse the repository at this point in the history
  • Loading branch information
maxwell committed Sep 16, 2010
2 parents 2e8785b + 0eb2c97 commit e7afebe
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/helpers/application_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ def current_aspect?(aspect)
end

def object_path(object, opts = {})
object = object.person if object.is_a? User
eval("#{object.class.to_s.underscore}_path(object, opts)")
end

Expand Down

0 comments on commit e7afebe

Please sign in to comment.