Class: Spree::Telegram::ErrorsController

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

Instance Method Summary collapse

Methods inherited from BaseController

#authorized_vendors, #authorizer_context, #handle_unauthorized_vendor, #required_telegram_vendor_user!

Instance Method Details

#forbiddenObject



6
7
8
# File 'app/controllers/spree/telegram/errors_controller.rb', line 6

def forbidden
  @message = "You're either not a vendor user or the vendor isn't belonging to you."
end

#resource_not_foundObject



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

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