app/controllers/effective/regions_controller.rb in effective_regions-1.1.1 vs app/controllers/effective/regions_controller.rb in effective_regions-1.2.0
- old
+ new
@@ -53,9 +53,14 @@
end
to_save.save!
end
+ # Hand off the appropriate params to EffectivePages gem
+ if defined?(EffectivePages)
+ Effective::Menu.update_from_effective_regions!(params[:effective_menus])
+ end
+
render :text => javascript_should_refresh_page, :status => 200
return
end
render :text => 'error', :status => :unprocessable_entity