Sha256: 5a8abdb995abf43409768d2f2ff1f0ed346f586eddbe5ad0cc7a57a3fdae4f35

Contents?: true

Size: 600 Bytes

Versions: 6

Compression:

Stored size: 600 Bytes

Contents

module RetinaRails
  module Extensions
    module Paperclip
      module Style

        def self.included base
          base.class_eval do
            alias_method :original_processor_options, :processor_options

            ##
            # Make sure to add the current style being processed to the args
            # so we can identify which style is being processed
            #
            def processor_options
              original_processor_options.merge!(:style => name)
            end
          end
        end

      end # Style
    end # Paperclip
  end # Extensions
end # RetinaRails

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
retina_rails-2.0.5 lib/retina_rails/extensions/paperclip.rb
retina_rails-2.0.4 lib/retina_rails/extensions/paperclip.rb
retina_rails-2.0.3 lib/retina_rails/extensions/paperclip.rb
retina_rails-2.0.2 lib/retina_rails/extensions/paperclip.rb
retina_rails-2.0.1 lib/retina_rails/extensions/paperclip.rb
retina_rails-2.0.0 lib/retina_rails/extensions/paperclip.rb