Method: Bj::Table::Config::ClassMethods#has_key?
- Defined in:
- lib/bj/table.rb
#has_key?(key) ⇒ Boolean Also known as: has_key
296 297 298 299 |
# File 'lib/bj/table.rb', line 296 def has_key? key record = find :first, :conditions => conditions(:key => key) record ? record : false end |