Class: LesliSupport::OptionsController
- Inherits:
-
ApplicationController
- Object
- Lesli::ApplicationLesliController
- ApplicationController
- LesliSupport::OptionsController
- Defined in:
- app/controllers/lesli_support/options_controller.rb
Instance Method Summary collapse
-
#index ⇒ Object
GET /options.
Instance Method Details
#index ⇒ Object
GET /options
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'app/controllers/lesli_support/options_controller.rb', line 6 def index respond_to do |format| format.html { } format.json do = { types: CatalogType.select(:id, :name), categories: CatalogCategory.select(:id, :name), priorities: CatalogPriority.select(:id, :name).order(:weight), workspaces: CatalogWorkspace.select(:id, :name) } respond_with_successful() end end end |