config/routes.rb in spud_media-0.8.3 vs config/routes.rb in spud_media-0.9.0
- old
+ new
@@ -1,9 +1,11 @@
Rails.application.routes.draw do
namespace :spud do
namespace :admin do
- resources :media
+ resources :media do
+ put 'set_access', :on => :member
+ end
end
end
-
-end
+ get Spud::Media.config.storage_url => 'ProtectedMedia#show', :as => 'protected_media'
+end
\ No newline at end of file