app/controllers/manage/assets_controller.rb in freeberry-0.2.7 vs app/controllers/manage/assets_controller.rb in freeberry-0.2.9

- old
+ new

@@ -1,11 +1,11 @@ class Manage::AssetsController < Manage::BaseController before_filter :find_klass, :only => [:create, :sort] before_filter :find_asset, :only => [:destroy] - filter_access_to :sort, :require => :update - respond_to :html, :xml + + authorize_resource def create @asset ||= @klass.new(params[:asset]) @asset.assetable_type = params[:assetable_type]