Code style fixes

This commit is contained in:
Luka Murn 2016-07-29 10:41:08 +02:00
parent affc429496
commit 4ea86d6aa1
2 changed files with 9 additions and 10 deletions

View file

@ -10,15 +10,15 @@ class ExperimentsController < ApplicationController
def new def new
@experiment = Experiment.new @experiment = Experiment.new
respond_to do |format| respond_to do |format|
format.json { format.json do
render json:{ render json: {
html: render_to_string( { html: render_to_string(
partial: "new_modal.html.erb" partial: 'new_modal.html.erb'
}) )
}
} }
end end
end end
end
def create def create
@experiment = Experiment.new(experiment_params) @experiment = Experiment.new(experiment_params)

View file

@ -11,7 +11,8 @@ class ProjectsController < ApplicationController
:samples_index] :samples_index]
before_action :check_view_notifications_permissions, only: [ :notifications ] before_action :check_view_notifications_permissions, only: [ :notifications ]
before_action :check_edit_permissions, only: [ :edit ] before_action :check_edit_permissions, only: [ :edit ]
before_action :check_experiment_archive_permissions, only: [:experiment_archive] before_action :check_experiment_archive_permissions,
only: [:experiment_archive]
filter_by_archived = false filter_by_archived = false
@ -306,9 +307,7 @@ class ProjectsController < ApplicationController
end end
def check_experiment_archive_permissions def check_experiment_archive_permissions
unless can_view_project_archive(@project) render_403 unless can_view_project_archive(@project)
render_403
end
end end
def choose_layout def choose_layout