app/controllers/simple_pages/pages_controller.rb in simple-pages-rails-0.6.0 vs app/controllers/simple_pages/pages_controller.rb in simple-pages-rails-0.7.0
- old
+ new
@@ -18,32 +18,24 @@
def show
respond_with @page
end
def new
- load_page_options
@page.author = session_user
respond_with @page
end
def edit
- load_page_options
end
def create
@page.save
- if @page.invalid?
- load_page_options
- end
respond_with @page
end
def update
@page.update_attributes page_params
- if @page.invalid?
- load_page_options
- end
respond_with @page
end
def destroy
@page.destroy
@@ -60,15 +52,9 @@
end
end
def new_page
@page = SimplePages::Page.new page_params
- end
-
- def load_page_options
- load_author_options
- load_page_layout_at_options
- load_page_cluster_options
end
private
def pagination_options