Module: Uchi

Defined in:
app/controllers/uchi/controller.rb,
lib/uchi.rb,
lib/uchi/i18n.rb,
lib/uchi/pagy.rb,
lib/uchi/view.rb,
lib/uchi/field.rb,
lib/uchi/action.rb,
lib/uchi/engine.rb,
lib/uchi/routes.rb,
lib/uchi/context.rb,
lib/uchi/plugins.rb,
lib/uchi/version.rb,
lib/uchi/repository.rb,
lib/uchi/sort_order.rb,
lib/uchi/view/constants.rb,
lib/uchi/action_response.rb,
lib/uchi/pagination/page.rb,
lib/uchi/repository/routes.rb,
lib/uchi/application_record.rb,
app/components/uchi/field/id.rb,
app/components/uchi/ui/frame.rb,
lib/uchi/field/configuration.rb,
app/jobs/uchi/application_job.rb,
lib/uchi/pagy/classes/request.rb,
lib/uchi/pagy/modules/console.rb,
lib/uchi/repository/translate.rb,
app/components/uchi/field/base.rb,
app/components/uchi/field/date.rb,
app/components/uchi/field/file.rb,
app/components/uchi/field/text.rb,
app/components/uchi/ui/spinner.rb,
app/helpers/uchi/routes_helper.rb,
lib/uchi/pagination/controller.rb,
app/components/uchi/field/blank.rb,
app/components/uchi/field/image.rb,
app/components/uchi/ui/no_value.rb,
app/components/uchi/field/number.rb,
app/components/uchi/field/select.rb,
app/components/uchi/field/string.rb,
lib/uchi/pagy/classes/exceptions.rb,
app/components/uchi/field/boolean.rb,
app/components/uchi/ui/breadcrumb.rb,
app/components/uchi/ui/navigation.rb,
app/components/uchi/ui/pagination.rb,
app/components/uchi/field/has_many.rb,
app/components/uchi/ui/form/footer.rb,
app/components/uchi/ui/page_header.rb,
app/components/uchi/ui/search_form.rb,
app/components/uchi/field/date_time.rb,
app/components/uchi/ui/search_input.rb,
app/helpers/uchi/application_helper.rb,
app/mailers/uchi/application_mailer.rb,
lib/uchi/pagy/classes/offset/offset.rb,
app/components/uchi/field/belongs_to.rb,
lib/uchi/pagy/toolbox/helpers/loader.rb,
app/components/uchi/ui/pagination/gap.rb,
app/components/uchi/ui/section_header.rb,
lib/uchi/call_with_flexible_arguments.rb,
app/components/uchi/ui/pagination/item.rb,
app/components/uchi/ui/pagination/link.rb,
lib/uchi/pagy/toolbox/helpers/page_url.rb,
app/components/uchi/ui/actions/dropdown.rb,
lib/uchi/pagy/toolbox/paginators/method.rb,
lib/uchi/pagy/toolbox/paginators/offset.rb,
app/components/uchi/ui/index/turbo_frame.rb,
app/controllers/uchi/searches_controller.rb,
lib/uchi/pagy/modules/abilities/linkable.rb,
lib/uchi/pagy/modules/abilities/rangeable.rb,
lib/uchi/pagy/modules/abilities/shiftable.rb,
app/components/uchi/ui/index/records_table.rb,
app/controllers/uchi/repository_controller.rb,
app/components/uchi/ui/pagination/next_link.rb,
app/controllers/uchi/application_controller.rb,
app/components/uchi/ui/show/attribute_fields.rb,
lib/uchi/pagy/modules/abilities/configurable.rb,
app/components/uchi/ui/navigation/search_link.rb,
lib/generators/uchi/install/install_generator.rb,
app/components/uchi/ui/pagination/current_link.rb,
app/controllers/uchi/search/results_controller.rb,
app/components/uchi/ui/pagination/previous_link.rb,
lib/generators/uchi/scaffold/scaffold_generator.rb,
app/components/uchi/field/has_and_belongs_to_many.rb,
app/controllers/uchi/actions/executions_controller.rb,
lib/generators/uchi/controller/controller_generator.rb,
lib/generators/uchi/repository/repository_generator.rb,
app/components/uchi/ui/index/records_table/search_form.rb,
app/components/uchi/ui/form/input/collection_checkboxes.rb,
app/controllers/uchi/has_many/associated_records_controller.rb,
app/controllers/uchi/belongs_to/associated_records_controller.rb,
sig/uchi.rbs

Overview

Base controller for Uchi namespace.

All Uchi controllers should inherit from Uchi::ApplicationController. This controller is here to provide us a set of defaults that can be overridden in consumer code.

  • Uchi::Controller is an internal base controller for the Uchi engine, which shouldn't be seen or used directly by consumer applications.
  • Uchi::ApplicationController is intended to be the base controller for consumer applications, allowing them to customize behavior without touching the internal Uchi::Controller.

Defined Under Namespace

Modules: Actions, ApplicationHelper, BelongsTo, Flowbite, HasMany, I18n, Pagination, RoutesHelper, Search, Ui Classes: Action, ActionResponse, ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, CallWithFlexibleArguments, Context, Controller, ControllerGenerator, Engine, Field, InstallGenerator, Pagy, Plugins, Repository, RepositoryController, RepositoryGenerator, Routes, ScaffoldGenerator, SearchesController, SortOrder, View

Constant Summary collapse

VERSION =

Returns:

  • (String)
"0.4.0-alpha"

Class Method Summary collapse

Class Method Details

.plugins ⇒ Object



23
24
25
# File 'lib/uchi.rb', line 23

def self.plugins
  @plugins ||= Plugins.new
end

.routes ⇒ Object



27
28
29
# File 'lib/uchi.rb', line 27

def self.routes
  @routes ||= Routes.new
end