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.19, 4.0.8, and 4.1.1, on Ruby 2.0.0. Previous versions were also tested compatible with 3.0.17 and 3.1.8 and it may still be but they're not supported.

installgem install constant_table_saver
Authors

Will Bryant

3,823 total downloads 285 for this version
Owners

F1c9a2d6b6be7599854a75793ecd872d

Gemfile
gem 'constant_table_saver', '~> 4.1.1'
Versions
  1. 4.1.1 August 18, 2014 (13 KB)
  2. 4.1.0 August 18, 2014 (13 KB)
  3. 4.0.0 May 18, 2014 (13 KB)
  4. 3.0.1 June 11, 2013 (12 KB)
  5. 3.0.0 April 20, 2013 (12 KB)
Show all versions (6 total)
Runtime Dependencies
  1. activerecord >= 0
Ruby Dependency
  1. >= 0
Development Dependencies
  1. rake >= 0
  2. sqlite3 >= 0