Skip to content

Commit

Permalink
compatibility fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
will-r committed Apr 4, 2009
1 parent 3727898 commit 2df8fbc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Beta. This is quite well-established code but I've just spent the morning bringi

This uses spanner's [reader](https://github.com/spanner/radiant-reader-extension) and [reader_group](https://github.com/spanner/radiant-reader_group-extension) extensions for access control. If you would like to change the basis for allowing downloads, the easiest thing is probably to override or chain `Download#available_to?`. But do tell us what you're trying to do. We like to be useful.

Also requires paperclip. At the moment I'm assuming that you have the paperclipped extension installed. If you don't want to do that, you can always put paperclip in your root /vendor/plugins.
Also requires [paperclip](http://www.thoughtbot.com/projects/paperclip). At the moment, rather than doubling up I'm assuming that you already have the paperclipped extension installed. If you don't want to do that, you can always put paperclip in your root /vendor/plugins.

This should be straightforwardly `multi_site` compatible. If you use our [fork of multi_site](https://github.com/spanner/radiant-multi-site-extension/) then downloads (and readers and groups) will be site-scoped.

Expand Down
7 changes: 1 addition & 6 deletions app/controllers/admin/downloads_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,2 @@
class Admin::DownloadsController < Admin::ResourceController

def create
model.update_attributes!(params[model_symbol])
announce_saved
response_for :create
end
end
2 changes: 1 addition & 1 deletion downloads_extension.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ def activate
Radiant::AdminUI.send :include, DownloadUI unless defined? admin.download
admin.download = Radiant::AdminUI.load_default_download_regions

admin.tabs.add "Downloads", "/admin/downloads", :after => "Groups", :visibility => [:admin]
admin.tabs.add "Downloads", "/admin/downloads", :after => "Layouts", :visibility => [:admin]
end

def deactivate
Expand Down

0 comments on commit 2df8fbc

Please sign in to comment.