mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-02-07 08:01:02 -05:00
this seems to mostly work
This commit is contained in:
@@ -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