Method: Bj::Table::Config::ClassMethods#for
- Defined in:
- lib/bj/table.rb
#for(options = {}) ⇒ Object
310 311 312 313 314 315 316 |
# File 'lib/bj/table.rb', line 310 def for = {} oh = OrderedHash.new find(:all, :conditions => conditions()).each do |record| oh[record.key] = record.value end oh end |