access connection through class
This commit is contained in:
parent
2f54d4f17d
commit
cb195f4d55
1 changed files with 1 additions and 1 deletions
|
|
@ -144,7 +144,7 @@ class Profile < ActiveRecord::Base
|
|||
if @tag_string
|
||||
@tag_string
|
||||
else
|
||||
rows = connection.select_rows( self.tags.scoped.to_sql )
|
||||
rows = self.class.connection.select_rows( self.tags.scoped.to_sql )
|
||||
rows.inject(""){|string, row| string << "##{row[1]} " }
|
||||
end
|
||||
end
|
||||
|
|
|
|||
Loading…
Reference in a new issue