This repository is private.
All pages are served over SSL and all pushing and pulling is done over SSH.
No one may fork, clone, or view it unless they are added as a member.
Every repository with this icon (
) is private.
Every repository with this icon (
This repository is public.
Anyone may fork, clone, or view it.
Every repository with this icon (
) is public.
Every repository with this icon (
| name | age | message | |
|---|---|---|---|
| |
.gitignore | Mon Aug 11 00:30:20 -0700 2008 | |
| |
README | Wed Apr 22 00:01:33 -0700 2009 | |
| |
Rakefile | Mon Aug 11 00:30:20 -0700 2008 | |
| |
db/ | Mon Aug 11 00:30:20 -0700 2008 | |
| |
lib/ | Sat Mar 14 05:39:53 -0700 2009 | |
| |
paperclipped_multi_site_extension.rb | Wed Apr 22 00:01:29 -0700 2009 | |
| |
spec/ | Sat Mar 14 07:06:10 -0700 2009 |
README
= paperclipped_multi_site This extension scopes assets to sites. Our fork of multi-site is needed, and does most of the work in the model (by putting a scope around find, essentially), so there are no controller modifications required and we can shrink this to a couple of lines. You could probably get rid of this extension altogether by adding this to Asset: is_site_scoped if defined? Site && Radiant::Config['assets.scoped?'] But the conditionality does make your tests a bit more tangled. Some basic tests are included to make sure that Asset loads and is properly scoped.







