-
Notifications
You must be signed in to change notification settings - Fork 208
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Switch to yarn #677
Switch to yarn #677
Conversation
right_aws is no longer maintained, was throwing an error
render :text will be deprecated and poses a security risk
The test is failing because of different names in model(warpable) and controller(images) skipping this for now until we decide if we want to standardize the names
else | ||
flash[:error] = 'You must be logged in to add tags' | ||
redirect_to '/login?back_to=/maps/' + @map.slug | ||
redirect_to "/login?back_to=/maps/#{@map.slug}" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Possible unprotected redirect
@map.lon = params[:map][:lon] | ||
@map.description = params[:map][:description] | ||
@map.license = params[:map][:license] if @map.user_id == current_user.id | ||
@map.update_attributes(map_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unprotected mass assignment
end | ||
end | ||
|
||
def update | ||
@comment = Comment.find params[:id] | ||
if logged_in? && current_user.can_edit?(@comment) | ||
@comment.update_attribute(:body, params[:comment][:body]) | ||
redirect_to '/maps/' + params[:map_id] | ||
@comment.update_attributes(comment_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unprotected mass assignment
else | ||
render 'new' | ||
end | ||
else | ||
@map = Map.new(params[:map]) | ||
@map = Map.new(map_params) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unprotected mass assignment
Code Climate has analyzed commit 116f385 and detected 17 issues on this pull request. Here's the issue category breakdown:
Note: there are 8 critical issues. View more on Code Climate. |
Whoops wrong branch |
Fixes #351