Skip to content

Commit

Permalink
add https
Browse files Browse the repository at this point in the history
  • Loading branch information
patwalls committed Dec 30, 2018
1 parent 764297d commit 2405a6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/post.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Post < ApplicationRecord

belongs_to :user

has_attached_file :meta, styles: { medium: "300x300>", thumb: "100x100>" }
has_attached_file :meta, styles: { medium: "300x300>", thumb: "100x100>" }, s3_protocol: :https
validates_attachment_content_type :meta, content_type: /\Aimage\/.*\z/

scope :published, -> { where(is_published: true) }
Expand Down

0 comments on commit 2405a6f

Please sign in to comment.