Sha256: 178b35ce4238fc7b551e0e8b873267cdf8dbb85ec6c8fd5f352d18e055c0e435
Contents?: true
Size: 1.03 KB
Versions: 5
Compression:
Stored size: 1.03 KB
Contents
= Paperclip Atompub Storage (Atompub Media Resource only.) == Installation gem 'paperclip-atompub', '~> 0.0.1' bundle exec rake paperclip_atompub:install:migrations bundle exec rake db:migrate == Usage === Simple class User < ActiveRecord::Base attr_accessible :name, :avatar has_attached_file :avatar, :storage => :atompub, :atompub_config => { :service_uri => 'http://atompub.host/atomsvc', :media_collection_uri => 'http://atompub.host/resources' }, :atompub_credentials => { :username => 'USERNAME', :password => 'PASSWORD' }, :styles => { :medium => "300x300>", :thumb => "100x100>" } end === Dynamic Credentials :atompub_credentials => lambda { |attachment| user = attachment.instance # => #<User id:1> { :username => user.atompub_username, :password => user.atompub_password } }, == Contributing to paperclip-atompub Fork, fix, then send me a pull request. == Copyright Copyright(c) 2012 Yuichi Takeuchi, released under the MIT license
Version data entries
5 entries across 5 versions & 1 rubygems
Version | Path |
---|---|
paperclip-atompub-0.0.3.3 | README.rdoc |
paperclip-atompub-0.0.3.2 | README.rdoc |
paperclip-atompub-0.0.3.1 | README.rdoc |
paperclip-atompub-0.0.3 | README.rdoc |
paperclip-atompub-0.0.1 | README.rdoc |