try to fix gallery /imgs
This commit is contained in:
parent
82874d33a1
commit
c7bebc6e0a
|
@ -1,6 +1,7 @@
|
||||||
class Admin::GalleriesController < OrbitAdminController
|
class Admin::GalleriesController < OrbitAdminController
|
||||||
before_filter :setup_vars
|
before_filter :setup_vars
|
||||||
before_action :authenticate_user, :log_user_action, :except => "imgs"
|
before_action :authenticate_user, :except => "imgs"
|
||||||
|
before_action :log_user_action
|
||||||
layout "back_end"
|
layout "back_end"
|
||||||
def index
|
def index
|
||||||
@albums = Album.all
|
@albums = Album.all
|
||||||
|
@ -30,13 +31,10 @@ class Admin::GalleriesController < OrbitAdminController
|
||||||
redirect_to admin_galleries_path
|
redirect_to admin_galleries_path
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
def destroy
|
def destroy
|
||||||
album = Album.find(params[:id])
|
album = Album.find(params[:id])
|
||||||
album.destroy
|
album.destroy
|
||||||
redirect_to admin_galleries_path
|
redirect_to admin_galleries_path
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
def edit
|
def edit
|
||||||
|
|
Loading…
Reference in New Issue