Template singleton for ActiveRecord