app/controllers/modules_controller.rb
# Allow to retrieve a module HTML code from an ajax call
Allow to retrieve a module HTML code from an ajax call
Allow to retrieve a module HTML code from an ajax call
def render_module
    @module_name = params[:module_name]
    if !is_module_allowed? @module_name
      return render nothing: true, status: 404
    end
    @locals = params[:locals]
  end
def render_module @module_name = params [ :module_name ] if ! is_module_allowed? @module_name return render nothing : true , status : 404 end @locals = params [ :locals ] end
Allow to retrieve a module HTML code from an ajax call
Allow to retrieve a module HTML code from an ajax call