# File lib/netzke/active_record/combobox_options.rb, line 4 4: def netzke_combo_options_for(column, query = "") 5: records = query.empty? ? find_by_sql("select distinct #{column} from #{table_name}") : find_by_sql("select distinct #{column} from #{table_name} where #{column} like '#{query}%'") 6: records.map{|r| r.send(column)} 7: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.