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