fixing /screenshot/:name
This commit is contained in:
parent
296e2d3f19
commit
eb198a491b
1 changed files with 1 additions and 1 deletions
|
|
@ -292,7 +292,7 @@ class PackagesController < ApplicationController
|
|||
@image = @package.best_screenshot_for_version(params[:version])
|
||||
else
|
||||
# Called as /screenshot/:name
|
||||
@package.screenshots.accessible_by(current_ability, :view).first
|
||||
@image = @package.screenshots.accessible_by(current_ability, :view).first
|
||||
end
|
||||
|
||||
# Return a 404 if the package has no screenshots or the image was not found
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue