Sha256: c1df9226b31d9faa7bed8fe0f12b39ddadac955a04255e374c32f75268a15af7
Contents?: true
Size: 495 Bytes
Versions: 2
Compression:
Stored size: 495 Bytes
Contents
module Hancock::Gallery::Paperclipable extend ActiveSupport::Concern include Hancock::Gallery::AutoCrop module ClassMethods def hancock_cms_attached_file(name, opts = {}) if Hancock.active_record? include Hancock::Gallery::ActiveRecordPaperclip hancock_cms_active_record_attached_file(name, opts) elsif Hancock.mongoid? include Hancock::Gallery::MongoidPaperclip hancock_cms_mongoid_attached_file(name, opts) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
hancock_cms_gallery-1.0.2 | app/models/concerns/hancock/gallery/paperclipable.rb |
hancock_cms_gallery-1.0.0 | app/models/concerns/hancock/gallery/paperclipable.rb |