this seems to mostly work

This commit is contained in:
Skud
2013-02-01 11:21:13 +11:00
parent ed2e73832d
commit cd469264bd
8 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,5 @@
class ApplicationController < ActionController::Base
protect_from_forgery
load_and_authorize_resource
# tweak CanCan defaults because we don't have a "current_user" method
def current_ability

View File

@@ -1,4 +1,5 @@
class CropsController < ApplicationController
load_and_authorize_resource
# GET /crops
# GET /crops.json

View File

@@ -1,4 +1,5 @@
class GardensController < ApplicationController
load_and_authorize_resource
# GET /gardens
# GET /gardens.json
def index

View File

@@ -1,4 +1,5 @@
class HomeController < ApplicationController
skip_authorize_resource
def index
end
end

View File

@@ -1,4 +1,5 @@
class MembersController < ApplicationController
load_and_authorize_resource
def index
@members = Member.confirmed

View File

@@ -1,4 +1,5 @@
class PlantingsController < ApplicationController
load_and_authorize_resource
# GET /plantings
# GET /plantings.json
def index

View File

@@ -1,4 +1,5 @@
class PostsController < ApplicationController
load_and_authorize_resource
# GET /posts
# GET /posts.json

View File

@@ -1,4 +1,5 @@
class ScientificNamesController < ApplicationController
load_and_authorize_resource
# GET /scientific_names
# GET /scientific_names.json
def index