forked from OpenNeo/impress
cache the constant pet_attributes.json
This commit is contained in:
parent
f5e3a39068
commit
f2bcde47ea
2 changed files with 3 additions and 0 deletions
|
@ -1,4 +1,6 @@
|
||||||
class PetAttributesController < ApplicationController
|
class PetAttributesController < ApplicationController
|
||||||
|
caches_page :index
|
||||||
|
|
||||||
def index
|
def index
|
||||||
render :json => {
|
render :json => {
|
||||||
:color => Color.all_ordered_by_name,
|
:color => Color.all_ordered_by_name,
|
||||||
|
|
1
public/.gitignore
vendored
Normal file
1
public/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
/pet_attributes.json
|
Loading…
Reference in a new issue