Skip to content

Commit

Permalink
Added dummy data
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjeno committed Jun 22, 2012
1 parent a08c711 commit 9799d3c
Show file tree
Hide file tree
Showing 15 changed files with 60 additions and 4 deletions.
@@ -0,0 +1,5 @@
class CachesAction::ProjectsController < ProjectsController

catche Project, :index

end
5 changes: 5 additions & 0 deletions spec/dummy/app/controllers/caches_action/tasks_controller.rb
@@ -0,0 +1,5 @@
class CachesAction::TasksController < TasksController

catche Task, :index, :show

end
2 changes: 2 additions & 0 deletions spec/dummy/app/controllers/caches_action/users_controller.rb
@@ -0,0 +1,2 @@
class CachesAction::UsersController < ApplicationController
end
5 changes: 5 additions & 0 deletions spec/dummy/app/controllers/caches_page/projects_controller.rb
@@ -0,0 +1,5 @@
class CachesPage::ProjectsController < ProjectsController

catches_page Project, :index

end
5 changes: 5 additions & 0 deletions spec/dummy/app/controllers/caches_page/tasks_controller.rb
@@ -0,0 +1,5 @@
class CachesPage::TasksController < TasksController

catches_page Task, :index, :show

end
2 changes: 2 additions & 0 deletions spec/dummy/app/controllers/caches_page/users_controller.rb
@@ -0,0 +1,2 @@
class CachesPage::UsersController < UsersController
end
2 changes: 0 additions & 2 deletions spec/dummy/app/controllers/projects_controller.rb
@@ -1,7 +1,5 @@
class ProjectsController < ApplicationController

catche Project, :index

# GET /projects
# GET /projects.json
def index
Expand Down
2 changes: 0 additions & 2 deletions spec/dummy/app/controllers/tasks_controller.rb
@@ -1,7 +1,5 @@
class TasksController < ApplicationController

catche Task, :index, :show

# GET /tasks
# GET /tasks.json
def index
Expand Down
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_action/projects_helper.rb
@@ -0,0 +1,2 @@
module CachesAction::ProjectsHelper
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_action/tasks_helper.rb
@@ -0,0 +1,2 @@
module CachesAction::TasksHelper
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_action/users_helper.rb
@@ -0,0 +1,2 @@
module CachesAction::UsersHelper
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_page/projects_helper.rb
@@ -0,0 +1,2 @@
module CachesPage::ProjectsHelper
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_page/tasks_helper.rb
@@ -0,0 +1,2 @@
module CachesPage::TasksHelper
end
2 changes: 2 additions & 0 deletions spec/dummy/app/helpers/caches_page/users_helper.rb
@@ -0,0 +1,2 @@
module CachesPage::UsersHelper
end
24 changes: 24 additions & 0 deletions spec/dummy/config/routes.rb
Expand Up @@ -10,6 +10,30 @@

resources :tasks

namespace :caches_page do
resources :projects do
resources :tasks
end

resources :users do
resources :tasks
end

resources :tasks
end

namespace :caches_action do
resources :projects do
resources :tasks
end

resources :users do
resources :tasks
end

resources :tasks
end

# The priority is based upon order of creation:
# first created -> highest priority.

Expand Down

0 comments on commit 9799d3c

Please sign in to comment.