Scopes gallery to multisite
Ruby
Switch branches/tags
Nothing to show
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
app/models
db/migrate
lib
spec
.gitignore
README.markdown
Rakefile
dependency.yml
gallery_multisite_extension.rb

README.markdown

Gallery Multisite

This extension scopes galleries to sites. Spanners 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.

Dependencies

Installation

You'll need to add ':gallery_observer' to the active record observers in your environment.rb connfig.

config.active_record.observers = [:user_action_observer, :gallery_observer]