mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-19 21:51:34 -04:00
this seems to mostly work
This commit is contained in:
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,4 +1,5 @@
|
||||
class CropsController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
|
||||
# GET /crops
|
||||
# GET /crops.json
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class GardensController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
# GET /gardens
|
||||
# GET /gardens.json
|
||||
def index
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class HomeController < ApplicationController
|
||||
skip_authorize_resource
|
||||
def index
|
||||
end
|
||||
end
|
||||
@@ -1,4 +1,5 @@
|
||||
class MembersController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
def index
|
||||
@members = Member.confirmed
|
||||
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
class PlantingsController < ApplicationController
|
||||
load_and_authorize_resource
|
||||
# GET /plantings
|
||||
# GET /plantings.json
|
||||
def index
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in new issue
Block a user