lib/base_repo.rb
def find!(table_name, wrapper, id)
    hash = find_hash(table_name, id)
    # raise Crossbeams::FrameworkError, "#{table_name}: id #{id} not found." if hash.nil?
    raise "#{table_name}: id #{id} not found." if hash.nil?

    wrapper.new(hash)
  end
# Find a row in a table. Raises an exception if it is not found.
#
# @param table_name [Symbol] the db table name.
# @param wrapper [Class] the class of the object to return.
# @param id [Integer] the id of the row.
# @return [Object] the row wrapped in a new wrapper object.
Find a row in a table. Raises an exception if it is not found.
Find a row in a table . Raises an exception if it is not found .
def find!(table_name, wrapper, id)
    hash = find_hash(table_name, id)
    raise "#{table_name}: id #{id} not found." if hash.nil?
    wrapper.new(hash)
  end
def find! ( table_name , wrapper , id ) hash = find_hash ( table_name , id ) raise "#{table_name}: id #{id} not found." if hash . nil? wrapper . new ( hash ) end
Find a row in a table.
Find a row in a table .
# raise Crossbeams::FrameworkError, "#{table_name}: id #{id} not found." if hash.nil?
the row wrapped in a new wrapper object.
the row wrapped in a new wrapper object .
Object
table_name
the db table name.
the db table name .
wrapper
the class of the object to return.
the class of the object to return .
id
the id of the row.
the id of the row .