Skip to content

Commit

Permalink
app: linting + restore cropped thumbnails
Browse files Browse the repository at this point in the history
  • Loading branch information
freesteph committed Feb 23, 2021
1 parent ac7f6f0 commit 5b1932b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/models/theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def preview
dimensions = "#{1600 / factor}x#{1200 / factor}"

# FIXME: figure out if this operation is cached or not
thumbnail.image
thumbnail.image.variant(gravity: 'SouthWest', crop: "#{dimensions}+0+0", resize: '300x300^')
end

def make_datetime(version)
Expand Down
2 changes: 1 addition & 1 deletion config/deploy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

# Default value for default_env is {}
set :default_env,
'DISPLAY': ':13'
DISPLAY: ':13'

# Default value for local_user is ENV['USER']
# set :local_user, -> { `git config user.name`.chomp }
Expand Down

0 comments on commit 5b1932b

Please sign in to comment.