mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-05-18 21:56:55 -04:00
DRY the admin controller
This commit is contained in:
@@ -1,16 +1,12 @@
|
||||
class AdminController < ApplicationController
|
||||
respond_to :html
|
||||
def index
|
||||
authorize! :manage, :all
|
||||
respond_to do |format|
|
||||
format.html # index.html.haml
|
||||
end
|
||||
end
|
||||
|
||||
def newsletter
|
||||
authorize! :manage, :all
|
||||
@members = Member.confirmed.wants_newsletter.all
|
||||
respond_to do |format|
|
||||
format.html # index.html.haml
|
||||
end
|
||||
respond_with @member
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user