module Medivo class ZipCode < ActiveRecord::Base ActiveRecord::Base.establish_connection({:adapter=>'sqlite3', :database=>"#{Medivo::Engine.config.root}/db/zip_codes.sqlite3"}) self.table_name = :zip_codes def center_info {:title=> "#{city}, #{state_short}, #{zip_code}", :lat=>lat, lng: lng} end end end