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.
Gemfile gem 'constant_table_saver', '~> 4.1.1'
install gem install constant_table_saver