kbingman/radiant-paperclipped_multisite-extension
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
= 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.
About
Adds multisite support to paperclipped, showing assets only for the current site if the user is not an admin
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published