No description, website, or topics provided.
Ruby
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
README
attachment_pu.rb

README

# Install on Debian/Ubuntu

apt-get install libgd2-noxpm libgd2-dev
gem install inline

# For Merb

Put attachment_pu.rb in /lib and then in your model put the following:

    has_attachment :thumb => [400,400], :tiny => [128,128]

You also need to include the functionality in your persistence framework of choice:

    ActiveRecord::Base.send(:extend, AttachmentPu::ActMethods)
    DataMapper::Resource.send(:extend, AttachmentPu::ActMethods)