diff --git a/config/application.rb b/config/application.rb index 9856295..87b9f12 100644 --- a/config/application.rb +++ b/config/application.rb @@ -59,3 +59,15 @@ module Lobsters end Rails.application.routes.default_url_options[:host] = "lobste.rs" + +module ActiveRecord + class Base + def self.q(str) + ActiveRecord::Base.connection.quote(str) + end + + def q(str) + ActiveRecord::Base.connection.quote(str) + end + end +end diff --git a/extras/utils.rb b/extras/utils.rb index e6fa134..feb7fb4 100644 --- a/extras/utils.rb +++ b/extras/utils.rb @@ -14,13 +14,3 @@ class Utils return str end end - -class ActiveRecord::Base - def self.q(str) - ActiveRecord::Base.connection.quote(str) - end - - def q(str) - ActiveRecord::Base.connection.quote(str) - end -end