Sha256: 97b81e73ec38fc4fb3ac29c5800267d2e307787e414ad9891846ff7a5a909a56
Contents?: true
Size: 620 Bytes
Versions: 4
Compression:
Stored size: 620 Bytes
Contents
class Admin::ImagesController < Admin::ResourceController before_filter :index_assets, :only => [ :index ] before_filter :edit_assets, :only => [ :show, :edit ] around_filter :rescue_s3_exceptions, :only => [ :create, :update, :destroy ] protected def index_assets include_stylesheet 'admin/extensions/images/index' end def edit_assets include_stylesheet 'admin/extensions/images/edit' end def rescue_s3_exceptions begin yield rescue AWS::S3::ResponseError => e flash[:error] = e.to_s redirect_to admin_images_url end end end
Version data entries
4 entries across 4 versions & 1 rubygems