Fix Hound errors

This commit is contained in:
Luka Murn 2016-11-22 15:19:12 +01:00
parent 7cbe44d1f2
commit fba646bfba
2 changed files with 7 additions and 7 deletions

View file

@ -9,13 +9,13 @@ class UserMyModulesController < ApplicationController
@user_my_modules = @my_module.user_my_modules
respond_to do |format|
format.json {
render :json => {
:html => render_to_string({
:partial => "index.html.erb"
})
format.json do
render json: {
html: render_to_string(
partial: 'index.html.erb'
)
}
}
end
end
end

View file

@ -172,7 +172,7 @@ Rails.application.routes.draw do
# Show action is a popup (JSON) for individual module in full-zoom canvas,
# as well as "module info" page for single module (HTML)
resources :my_modules, path: '/modules', only: [:show, :update] do
resources :my_module_tags, path: "/tags", only: [:create, :destroy]
resources :my_module_tags, path: '/tags', only: [:create, :destroy]
resources :user_my_modules, path: '/users',
only: [:index, :create, :destroy]
resources :my_module_comments,