Sha256: f824a941f699a513ba4bbb5b5f46b5dd0fb454052af61d4aa76c07505820493c
Contents?: true
Size: 770 Bytes
Versions: 4
Compression:
Stored size: 770 Bytes
Contents
# frozen_string_literal: true require "dragonfly_svg" require "alchemy/dragonfly/processors/crop_resize" require "alchemy/dragonfly/processors/thumbnail" # Logger Dragonfly.logger = Rails.logger # Add model functionality if defined?(ActiveRecord::Base) ActiveRecord::Base.extend Dragonfly::Model ActiveRecord::Base.extend Dragonfly::Model::Validations end # Dragonfly 1.4.0 only allows `quality` as argument to `encode` Dragonfly::ImageMagick::Processors::Encode::WHITELISTED_ARGS << "flatten" Rails.application.config.after_initialize do Dragonfly.app(:alchemy_pictures).add_processor(:crop_resize, Alchemy::Dragonfly::Processors::CropResize.new) Dragonfly.app(:alchemy_pictures).add_processor(:thumbnail, Alchemy::Dragonfly::Processors::Thumbnail.new) end
Version data entries
4 entries across 4 versions & 1 rubygems