mongoid-paperclip icon indicating copy to clipboard operation
mongoid-paperclip copied to clipboard

Mongoid::Paperclip enables you to use Paperclip with the Mongoid ODM for MongoDB.

Results 14 mongoid-paperclip issues
Sort by recently updated
recently updated
newest added

Hey all :wave: I noticed recently that `id_partition` interpolation was not working any more in my project, it was always `nil`. As I investigated I noticed the reason is quite...

aws-sdk gem 3.0 + removed the constant Aws::VERSION which produces paperclip to crash I'm just leting you know that until this PR https://github.com/thoughtbot/paperclip/pull/2481 is merged and added to a release...

I upload a file with the nested_form_for and the params are really stored in the database. The file itself is not stored on the filesystem. What does not work: class...

Since I haven't used Mongoid and/or Paperclip for quite a while, I'd like to add one or more collaborators that are still actively using this setup and would like to...

Announcement

I want save an attachment in a path such as: ``` ruby rails_root/parent/:id_parent/child/:id_child/:filename ``` ``` ruby class Parent include Mongoid::Document embeds_many :childrens , cascade_callbacks: true end class Child include Mongoid::Document...

destroy or destroy all on embedded documents doesnt destroy all object. person.rb class Person embeds_many :pictures, :cascading_callback => true end picture.rb class Picture embedded_in Person has_mongoid_attached_file :picture end in PersonsController...

class Item include Mongoid::Document field :name, type: String field :description, type: String embeds_many :photos, cascade_callbacks: true accepts_nested_attributes_for :photos end class Photo include Mongoid::Document include Mongoid::Paperclip embedded_in :items, :inverse_of => :photos...

Paperclip::AdapterRegistry::NoHandlerError - No handler found for ``` { "filename" => "file.torrent", "type" => "application/octet-stream", "name" => "incident[docs_attributes][0][attachment]", "tempfile" => #, "head" => "Content-Disposition: form-data; name=\"incident[docs_attributes][0][attachment]\"; filename=\"file.torrent\"\r\nContent-Type: application/octet-stream\r\n" } ```

The paperclip refresh &c commands are broken with embedded models, since it attempts to load from the top level: ``` $ rake RAILS_ENV=staging paperclip:refresh:missing_styles Regenerating Image -> photo -> [:background,...

In a model like: ``` ruby class Mockup include Mongoid::Document include Mongoid::Paperclip include Mongoid::Versioning has_mongoid_attached_file :screenshot, :url => '/system/mockups/:id/:version/:id.:extension', :path => ':rails_root/public:url' Paperclip.interpolates :version do |attachment, style| attachment.instance.version end end...