lib/pg_search/features/feature.rb in pg_search-0.5.7 vs lib/pg_search/features/feature.rb in pg_search-0.6.0
- old
+ new
@@ -1,7 +1,9 @@
module PgSearch
module Features
class Feature
+ delegate :connection, :quoted_table_name, :to => :'@model'
+
def initialize(query, options, columns, model, normalizer)
@query = query
@options = options || {}
@columns = columns
@model = model