Class: Spree::Events::ErrorsController

Inherits:
Admin::BaseController
  • Object
show all
Defined in:
app/controllers/spree/events/errors_controller.rb

Instance Method Summary collapse

Instance Method Details

#authorize_adminObject

override



7
# File 'app/controllers/spree/events/errors_controller.rb', line 7

def authorize_admin; end

#forbiddenObject



9
10
11
12
# File 'app/controllers/spree/events/errors_controller.rb', line 9

def forbidden
  @error = 'Forbidden Access'
  @message = "You're either not a organizer or the event isn't belonging to you."
end

#resource_not_foundObject



14
15
16
# File 'app/controllers/spree/events/errors_controller.rb', line 14

def resource_not_found
  @message = 'Resources you are looking are not found.'
end