class Image < ActiveRecord::Base
  include Concerns::Utils

  belongs_to :user

  dragonfly_accessor :asset do
    storage_options do |attachment|
      {
        root_path: 'images/',
        headers: {'x-amz-acl' => 'public-read-write'}
      }
    end
  end
  abs_url_for :asset

end
