Active Record Lite
Mass Object - This file implements
attr_accessible, automatically blacklisting all attributes and whitelisting those specified, as well as the
initializemethod used in ActiveRecord::Base.
SQL Object - This file implements most of the basic functions of ActiveRecord::Base objects, such as
Searchable - The
Searchablemodule recreates the
wherefunction from ActiveRecord::Base.
Associatable - This file creates
object parameters that are then used to create a function, named after the association, that uses this data in its SQL query. I implemented basic forms ofhas_many
, and, because it easily followed,has_many_through`.