trak3r (owner)

Revisions

gist: 209722 Download_button fork
public
Public Clone URL: git://gist.github.com/209722.git
Embed All Files: show embed
Ruby #
1
2
3
4
5
            doppleganger = Class.new(ActiveRecord::Base)
            doppleganger.set_table_name "latest_#{self.class.table_name}"
            Object.const_set "Latest#{self.class.name}", doppleganger
            doppleganger.find(:first, :conditions => ...)