Fix bug.
This commit is contained in:
parent
4cad16bd13
commit
469e66952d
|
@ -281,7 +281,7 @@ class Admin::GalleriesController < OrbitAdminController
|
||||||
@fiter_albums = albums1.concat(albums2)
|
@fiter_albums = albums1.concat(albums2)
|
||||||
end
|
end
|
||||||
def update_album_setting
|
def update_album_setting
|
||||||
params_album_setting = params['album_setting'].permit!
|
params_album_setting = params.require(:album_setting).permit!
|
||||||
AlbumSetting.first.update_attributes(params_album_setting)
|
AlbumSetting.first.update_attributes(params_album_setting)
|
||||||
redirect_to '/admin/galleries'
|
redirect_to '/admin/galleries'
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue