Class: Sprangular::BaseController
- Inherits:
-
Spree::BaseController
- Object
- Spree::BaseController
- Sprangular::BaseController
show all
- Includes:
- Csrf, Spree::Core::ControllerHelpers::Order
- Defined in:
- app/controllers/sprangular/base_controller.rb
Direct Known Subclasses
AccountsController, CartsController, CountriesController, CreditCardsController, HomeController, LocaleController, OrdersController, PasswordsController, ProductsController, ShippingRatesController, TaxonomiesController, TaxonsController
Instance Method Summary
collapse
Instance Method Details
#invalid_resource!(resource) ⇒ Object
17
18
19
20
|
# File 'app/controllers/sprangular/base_controller.rb', line 17
def invalid_resource!(resource)
@resource = resource
render "sprangular/errors/invalid", status: 422
end
|
#not_found ⇒ Object
26
27
28
|
# File 'app/controllers/sprangular/base_controller.rb', line 26
def not_found
render "sprangular/errors/not_found", status: 404
end
|
#unauthorized ⇒ Object
22
23
24
|
# File 'app/controllers/sprangular/base_controller.rb', line 22
def unauthorized
render "sprangular/errors/unauthorized", status: 401
end
|