cache the constant pet_attributes.json

This commit is contained in:
Emi Matchu 2010-12-11 10:32:42 -05:00
parent f5e3a39068
commit f2bcde47ea
2 changed files with 3 additions and 0 deletions

View file

@ -1,4 +1,6 @@
class PetAttributesController < ApplicationController
caches_page :index
def index
render :json => {
:color => Color.all_ordered_by_name,

1
public/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
/pet_attributes.json