search for: test_lookup

Displaying 1 result from an estimated 1 matches for "test_lookup".

Did you mean: host_lookup
2013 Mar 28
1
undefined method 'sanitize_limit' for #<ActiveRecord::Relation:0x2aaaad35d720>
...ps://github.com/rails/rails/issues/1974 Hence updated to: test = where(search_column_name => attributes[search_column_name]).all.to_a.first ...and this statement started working fine. But, find_by_name() is still failing with the same error. for eg. the below statement is not always working. test_lookup = find_by_identifier(lookup_str) || find_by_name(lookup_str) || find_by_abbreviation(lookup_str) statement is called under a function, defined in a model: def self.lookup(lookup_str) return nil if lookup_str.blank? test_lookup = find_by_identifier(lookup_str) || find_by_name(lookup_str) || f...