Permalink
Browse files

updated rails version to 4.2.7.1

added quality option to paperclip (medium.rb)
  • Loading branch information...
yoosee committed Feb 16, 2017
1 parent 62c15a3 commit 6b35a12a8f37ac18fbd752f055efb5fab1af3831
Showing with 4 additions and 2 deletions.
  1. +1 −1 Gemfile
  2. +3 −1 app/models/medium.rb
View
@@ -1,6 +1,6 @@
source 'https://rubygems.org'
gem 'rails', '4.2.2'
gem 'rails', '4.2.7.1'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
View
@@ -4,7 +4,9 @@ class Medium < ActiveRecord::Base
has_attached_file :image,
styles: { medium: "920x480>", thumb: "120x120>" },
convert_options: {
all: "-strip"
all: "-strip",
medium: "-quality 65",
thumb: "-quality 60"
},
default_url: "/image/:style/missing.png"
validates_attachment_content_type :image, :content_type => /\Aimage\/.*\Z/

0 comments on commit 6b35a12

Please sign in to comment.