Class: Ecom::Core::CompaniesController

Inherits:
ApplicationController show all
Defined in:
app/controllers/ecom/core/companies_controller.rb

Instance Method Summary collapse

Methods inherited from ApplicationController

#current_user, #logged_in?

Instance Method Details

#default_companyObject



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

#indexObject



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