Skip to content

Commit

Permalink
Merge pull request wearefriday#19 from wearefriday/issue-15-refresh-t…
Browse files Browse the repository at this point in the history
…humbnail

Delete existing thumbnail when updating a baseline
  • Loading branch information
fionnbharra committed Sep 20, 2016
2 parents 60a0df9 + 1add382 commit d79e967
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/models/baseline.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class Baseline < ActiveRecord::Base
validates :key, :name, :browser, :size, :suite, presence: true

def create_thumbnails
delete_thumbnails # remove any existing thumbnail for when baselines change
s = screenshot_thumbnail.url
end

Expand Down

0 comments on commit d79e967

Please sign in to comment.