Class: Ecom::Core::CompaniesController
- Inherits:
-
ApplicationController
- Object
- ActionController::API
- ApplicationController
- Ecom::Core::CompaniesController
- Defined in:
- app/controllers/ecom/core/companies_controller.rb
Instance Method Summary collapse
Methods inherited from ApplicationController
Instance Method Details
#default_company ⇒ Object
9 10 11 12 |
# File 'app/controllers/ecom/core/companies_controller.rb', line 9 def default_company data = Ecom::Core::Company.first render json: data end |
#index ⇒ Object
4 5 6 7 |
# File 'app/controllers/ecom/core/companies_controller.rb', line 4 def index data = Ecom::Core::Company.all render json: data end |