Class: Oauth::ApplicationsController
- Inherits:
-
Doorkeeper::ApplicationsController
- Object
- Doorkeeper::ApplicationsController
- Oauth::ApplicationsController
- Includes:
- Gitlab::Experimentation::ControllerConcern, Gitlab::GonHelper, InitializesCurrentUserMode, OauthApplications, PageLayoutHelper
- Defined in:
- app/controllers/oauth/applications_controller.rb
Instance Method Summary collapse
Methods included from InitializesCurrentUserMode
Methods included from Gitlab::Experimentation::ControllerConcern
#experiment_enabled?, #experiment_tracking_category_and_group, #frontend_experimentation_tracking_data, #record_experiment_user, #set_experimentation_subject_id_cookie, #track_experiment_event
Methods included from OauthApplications
Methods included from PageLayoutHelper
#blank_container, #container_class, #favicon, #fluid_layout, #header_title, #nav, #page_card_attributes, #page_card_meta_tags, #page_description, #page_image, #page_title, #search_context, #sidebar
Methods included from Gitlab::GonHelper
#add_gon_variables, #default_avatar_url, #push_frontend_feature_flag
Methods included from WebpackHelper
#webpack_bundle_tag, #webpack_controller_bundle_tags, #webpack_entrypoint_paths, #webpack_public_host, #webpack_public_path
Methods included from StartupCssHelper
Instance Method Details
#create ⇒ Object
27 28 29 30 31 32 33 34 35 36 37 38 |
# File 'app/controllers/oauth/applications_controller.rb', line 27 def create @application = Applications::CreateService.new(current_user, create_application_params).execute(request) if @application.persisted? flash[:notice] = I18n.t(:notice, scope: [:doorkeeper, :flash, :applications, :create]) redirect_to oauth_application_url(@application) else set_index_vars render :index end end |
#index ⇒ Object
23 24 25 |
# File 'app/controllers/oauth/applications_controller.rb', line 23 def index set_index_vars end |