给含有paperclip的Mongoid 支持解压缩包和清理的封装。
Switch branches/tags
Nothing to show
Clone or download
Pull request Compare This branch is even with SunshineLibrary:sunshine.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
lib
.gitignore
LICENSE
README.markdown
mongoid_unpack_paperclip.gemspec

README.markdown

mongoid_unpack_paperclip

给含有paperclip的Mongoid 支持解压缩包和清理的封装。

Usage

class ExampleModel
  include Mongoid::Paperclip
  include Mongoid::UnpackPaperclip

  def process
    self.unpack_paperclip do
      ... # your implementation
    end
  end
end