Displaying 1 result from an estimated 1 matches for "foundon".
Did you mean:
foundor
2005 Dec 08
2
Confusing lock problem in rails
...ind_by_setting(''autodelete'')
if @p and @p.value.to_i > 0
val = @p.value.to_i
destroy_all(["found_on <= DATE_SUB(CURDATE(), INTERVAL ? DAY)", val])
end
end
def self.delete_before(params)
date = sprintf("%04d-%02d-%02d", params[:foundon][:year],
params[:foundon][:month],
params[:foundon][:day])
deleted = Resume.destroy_all(["found_on <= ?", date])
optimize_index
deleted.length
end
validates_uniqueness_of :email
end