Sha256: ef988613e97c152824f0813a57f8e57438f818d6d94fa46b79898e291ecf3a08

Contents?: true

Size: 302 Bytes

Versions: 31

Compression:

Stored size: 302 Bytes

Contents

module Spree
  module Admin
    class BannersController < Spree::Admin::BaseController
      def dismiss
        if params[:id]
          if user = try_spree_current_user
            user.dismiss_banner(params[:id])
          end
        end
        render :nothing => true
      end
    end
  end
end

Version data entries

31 entries across 31 versions & 3 rubygems

Version Path
spree_backend-2.0.13 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.12 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.11 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.10 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.9 app/controllers/spree/admin/banners_controller.rb
spree_core-1.3.5 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.8 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.7 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.1.2 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.6 app/controllers/spree/admin/banners_controller.rb
spree_core-1.3.4 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.1.1 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.5 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.1.0 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.4 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.3 app/controllers/spree/admin/banners_controller.rb
spree_core-1.3.3 app/controllers/spree/admin/banners_controller.rb
spree_core-1.2.5 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.2 app/controllers/spree/admin/banners_controller.rb
spree_backend-2.0.1 app/controllers/spree/admin/banners_controller.rb