Join GitHub today
GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
|Failed to load latest commit information.|
= 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.