How to override the ext_search named_scope

0 views
Skip to first unread message

darkslategrey

unread,
May 11, 2010, 9:41:52 AM5/11/10
to Lipsiadmin
Hi,

i need to resolve the integer search problem with postgresql.
In the utility_scopes.rb file i can read :

# You or your plugins (ex: will_paginate) now can override
the search/paginate
# at the moment we can't remove them for backward
compatibility.
(class << self; self end).instance_eval do
%w(search paginate).each do |name|
define_method name do |*args|
send("ext_#{name}", *args)
end
end
end

But how to override the search ?

Thank you for your answers.

--
Hai ricevuto questo messaggio perché sei iscritto al gruppo "Lipsiadmin" di Google Gruppi.
Per postare messaggi in questo gruppo, invia un'email a lipsi...@googlegroups.com.
Per annullare l'iscrizione a questo gruppo, invia un'email a lipsiadmin+...@googlegroups.com.
Per ulteriori opzioni, visita il gruppo all'indirizzo http://groups.google.com/group/lipsiadmin?hl=it.

Reply all
Reply to author
Forward
0 new messages