Skip to content
A simple LookUpTable to cache large (!) and static(!) data
Ruby JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
rdoc
test
.gitignore
CHANGELOG
Gemfile
Gemfile.lock
MIT-LICENSE
README.rdoc
Rakefile
look_up_table.gemspec

README.rdoc

LookUpTable

STILL IN DEVELOPMENT!

Requirements:

  • Rails 3.x

  • Ruby 1.8.7, 1.9.2, 1.9.3

Install

Put following to your gemfile:

gem 'look_up_table'

Usage

class Foobar < ActiveRecord::Base
  # Allows: Foobar.lut :id
  look_up_table :id

  # Allows: Foobar.lut :foo
  look_up_table :foo

  # Allows: Foobar.lut :bar
  look_up_table :bar

  # Allows: Foobar.lut :foobar
  look_up_table :foobar
end

TODOs

  • Rename gem to 'rails-look_up_table'

  • More DOCs

Something went wrong with that request. Please try again.