this seems to mostly work

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

No files matched your search

@@ -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
+1
View File
@@ -1,4 +1,5 @@
class CropsController < ApplicationController
load_and_authorize_resource
# GET /crops
# GET /crops.json
+1
View File
@@ -1,4 +1,5 @@
class GardensController < ApplicationController
load_and_authorize_resource
# GET /gardens
# GET /gardens.json
def index
+1
View File
@@ -1,4 +1,5 @@
class HomeController < ApplicationController
skip_authorize_resource
def index
end
end
+1
View File
@@ -1,4 +1,5 @@
class MembersController < ApplicationController
load_and_authorize_resource
def index
@members = Member.confirmed
+1
View File
@@ -1,4 +1,5 @@
class PlantingsController < ApplicationController
load_and_authorize_resource
# GET /plantings
# GET /plantings.json
def index
+1
View File
@@ -1,4 +1,5 @@
class PostsController < ApplicationController
load_and_authorize_resource
# GET /posts
# GET /posts.json
@@ -1,4 +1,5 @@
class ScientificNamesController < ApplicationController
load_and_authorize_resource
# GET /scientific_names
# GET /scientific_names.json
def index