class <%= class_name %> < ActiveRecord::Base <%= " set_table_name :#{table_name}\n" if class_name.include?("::") -%> end