DG IZ; fixing querying bug in aspect_by_id
This commit is contained in:
parent
9c334e24e4
commit
ca97d792af
1 changed files with 2 additions and 1 deletions
|
|
@ -31,7 +31,8 @@ module Diaspora
|
|||
end
|
||||
|
||||
def aspect_by_id( id )
|
||||
self.aspects.find( id )
|
||||
id = id.to_id
|
||||
aspects.detect{|x| x.id == id }
|
||||
end
|
||||
|
||||
def album_by_id( id )
|
||||
|
|
|
|||
Loading…
Reference in a new issue