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, FacebookController, HomeController, PasswordsController, ProductsController, ShippingRatesController, TaxonomiesController, TaxonsController
Instance Method Summary
collapse
Instance Method Details
#invalid_resource!(resource) ⇒ Object
15
16
17
18
|
# File 'app/controllers/sprangular/base_controller.rb', line 15
def invalid_resource!(resource)
@resource = resource
render "sprangular/errors/invalid", status: 422
end
|
#not_found ⇒ Object
24
25
26
|
# File 'app/controllers/sprangular/base_controller.rb', line 24
def not_found
render "sprangular/errors/not_found", status: 404
end
|
#unauthorized ⇒ Object
20
21
22
|
# File 'app/controllers/sprangular/base_controller.rb', line 20
def unauthorized
render "sprangular/errors/unauthorized", status: 401
end
|