app/controllers/oauth/applications_controller.rb
# only needed if each application must have some owner
only needed if each application must have some owner
only needed if each application must have some owner
def create
    @application = Doorkeeper::Application.new(application_params)
    @application.owner = current_admin if Doorkeeper.configuration.confirm_application_owner?
    if @application.save
      flash[:notice] = I18n.t(:notice, :scope => [:doorkeeper, :flash, :applications, :create])
      redirect_to oauth_application_url(@application)
    else
      render :new
    end
  end
def create @application = Doorkeeper :: Application . new ( application_params ) @application . owner = current_admin if Doorkeeper . configuration . confirm_application_owner? if @application . save flash [ :notice ] = I18n . t ( :notice , :scope => [ :doorkeeper , :flash , :applications , :create ] ) redirect_to oauth_application_url ( @application ) else render :new end end
only needed if each application must have some owner
only needed if each application must have some owner