Displaying 2 results from an estimated 2 matches for "user_column".
Did you mean:
user_columns
2008 Jun 26
6
ActiveRecord search Query Question
...#39;m sure that I''m doing some logical mistakes but I''m new to ruby on
rails so please forgive me.
hope some one can help
def conditions_by_like(value, *columns)
myArray = value.gsub(/[^\A-Za-z0-9\s]/, "").split(/ /)
myArray.each do |itemz|
columns = self.user_columns if columns.size==0
columns = columns[0] if columns[0].kind_of?(Array)
conditions = columns.map { |c|
c = c.name if c.kind_of? ActiveRecord::ConnectionAdapters::Column
"`#{c}` LIKE " +
ActiveRecord::Base.connection.quote("%#{itemz}%")
}.join("...
2005 May 09
1
Asterisk + SER and NAT
..."usrloc", "db_mode", 1)
modparam("usrloc", "db_url","sql://user:passwd@192.168.0.145/astcc")
# -- auth params --
modparam("auth_db", "db_url","sql://user:passwd@192.168.0.145/astcc")
modparam("auth_db", "user_column", "name")
modparam("auth_db", "domain_column", "domain")
modparam("auth_db", "calculate_ha1", 1)
modparam("auth_db", "password_column", "secret")
# -- replication auth param --
modparam("auth"...