summaryrefslogtreecommitdiff
path: root/app/controllers
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers')
-rw-r--r--app/controllers/pages_controller.rb12
1 files changed, 5 insertions, 7 deletions
diff --git a/app/controllers/pages_controller.rb b/app/controllers/pages_controller.rb
index a40bf10..2d08dea 100644
--- a/app/controllers/pages_controller.rb
+++ b/app/controllers/pages_controller.rb
@@ -3,21 +3,19 @@ class PagesController < ApplicationController
3 # Private 3 # Private
4 4
5 before_action :login_required 5 before_action :login_required
6 6
7 def preview 7 def preview
8 @page = Page.find(params[:id]) 8 @page = Page.find(params[:id])
9 9
10 if @page 10 if @page
11 template = @page.valid_template 11 template = @page.valid_template
12 render( 12 render(
13 :file => template, 13 template: template,
14 :layout => "application" 14 layout: "application"
15 ) 15 )
16 end 16 end
17
18 end 17 end
19 18
20
21 def sort_images 19 def sort_images
22 page = Page.find(params[:id]) 20 page = Page.find(params[:id])
23 page.update_assets(params[:images]) 21 page.update_assets(params[:images])