korolvs/thatsaboy

View on GitHub
api/app/infrastructure/core/interpolations.rb

Summary

Maintainability
A
0 mins
Test Coverage
# Custom interpolations for Paperclip
module Paperclip::Interpolations
  # Returns a the attachment hash.
  def hash(attachment, style_name)
    attachment.hash_key().scan(/.{2}/).first(3).join('/'.freeze)
  end
end