RubyGems.org

Loads all records from the table on first use, and thereafter returns the cached (and frozen) records for all find calls. Optionally, creates class-level methods you can use to grab the records, named after the name field you specify. Compatibility ============= Currently tested against Rails 3.2.13, on Ruby 1.8.7 and 2.0.0p0. Was also tested compatible with 2.3.14, 3.0.17, and 3.1.8.

installgem install constant_table_saver
Authors

Will Bryant

810 total downloads 131 for this version
Owners

F1c9a2d6b6be7599854a75793ecd872d

Gemfile
gem "constant_table_saver", "~> 3.0.0"
Versions
  1. 3.0.0 April 20, 2013
  2. 2.0.0 August 19, 2012
Runtime Dependencies
  1. activerecord >= 0
Development Dependencies
  1. rake >= 0
  2. sqlite3 >= 0