How can I pass something to set_table_name so that I can switch tables
on the fly for accessing archive data?
If I could access sessions inside a model I would do something like:
set_table_name “statistics_” + @session[:archive_year]
set_table_name “statistics_” + Date.now.year
But since I cannot access the session from within a model how do I tell
the model to archive data which is held in a different table eg.
Many thanks, K.