Sha256: d46fe60cf894b189905e7ca27e59ee3bf56e9af33b21b25ae8be688ec2bc496a

Contents?: true

Size: 441 Bytes

Versions: 6

Compression:

Stored size: 441 Bytes

Contents

module Enjoy::Gallery::Paperclipable
  extend ActiveSupport::Concern

  module ClassMethods
    def enjoy_cms_attached_file(name, opts = {})
      if Enjoy.active_record?
        include Enjoy::Gallery::ActiveRecordPaperclip
        enjoy_cms_active_record_attached_file(name, opts)

      elsif Enjoy.mongoid?
        include Enjoy::Gallery::MongoidPaperclip
        enjoy_cms_mongoid_attached_file(name, opts)
      end
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
enjoy_cms_gallery-0.4.1 app/models/concerns/enjoy/gallery/paperclipable.rb
enjoy_cms_gallery-0.4.0.2 app/models/concerns/enjoy/gallery/paperclipable.rb
enjoy_cms_gallery-0.4.0.1 app/models/concerns/enjoy/gallery/paperclipable.rb
enjoy_cms_gallery-0.4.0 app/models/concerns/enjoy/gallery/paperclipable.rb
enjoy_cms_gallery-0.4.0.beta3 app/models/concerns/enjoy/gallery/paperclipable.rb
enjoy_cms_gallery-0.4.0.beta1 app/models/concerns/enjoy/gallery/paperclipable.rb