Sha256: 63aff5b644aeb01e2fbdb36f35f9eefc10b89c7979bdb7d46a13248215fa4112

Contents?: true

Size: 416 Bytes

Versions: 2

Compression:

Stored size: 416 Bytes

Contents

class Oauth::ClientApplicationController < ApplicationController
  before_filter :opro_authenticate_user!

  def new
    @client_app = Oauth::ClientApplication.new
  end

  def create
    @client_app = Oauth::ClientApplication.create_with_user_and_name(current_user, params[:oauth_client_application][:name])
  end

  def index
    @client_apps = Oauth::ClientApplication.where(:user_id => current_user.id)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
opro-0.0.1.pre1.0.1 app/controllers/oauth/client_application_controller.rb
opro-0.0.1.pre app/controllers/oauth/client_application_controller.rb