Class: Spree::Admin::BannersController

Inherits:
BaseController show all
Defined in:
app/controllers/spree/admin/banners_controller.rb

Instance Attribute Summary

Attributes included from Core::ControllerHelpers

#title

Instance Method Summary collapse

Methods included from Core::ControllerHelpers

#associate_user, included, #try_spree_current_user

Instance Method Details

#dismissObject



4
5
6
7
8
9
10
11
# File 'app/controllers/spree/admin/banners_controller.rb', line 4

def dismiss
  if request.xhr? and params[:id]
    if user = try_spree_current_user
      user.dismiss_banner(params[:id])
    end
    render :nothing => true
  end
end