Skip to content

Commit

Permalink
change quotes to work with postgres in addition to sqlite3 and mysql
Browse files Browse the repository at this point in the history
Signed-off-by: Aissac SRL <istvan.hoka@aissac.ro>
  • Loading branch information
johnmuhl authored and ihoka committed May 13, 2009
1 parent 97107f7 commit ea64bfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/stereotype/pages_controller_extensions.rb
Expand Up @@ -8,7 +8,7 @@ def self.included(base)
end

def find_stereotypes
@stereotypes = Radiant::Config.find(:all, :conditions => [ "`key` LIKE ?", "stereotype%"]).map(&:key).collect{|k| k.split('.')[1]}.uniq
@stereotypes = Radiant::Config.find(:all, :conditions => [ "'key' LIKE ?", "stereotype%"]).map(&:key).collect{|k| k.split('.')[1]}.uniq
end
end
end

0 comments on commit ea64bfe

Please sign in to comment.