Sha256: 33999c6e692c026ee70b09496e54da0b4871f78d7953ec0caba40ae1a2ee1347
Contents?: true
Size: 625 Bytes
Versions: 2
Compression:
Stored size: 625 Bytes
Contents
class Oauth::ClientAppController < OproController before_filter :opro_authenticate_user! def new @client_app = Oauth::ClientApp.new end # Show all client applications belonging to the current user def index @client_apps = Oauth::ClientApp.where(:user_id => current_user.id) end def create @client_app = Oauth::ClientApp.find_by_user_id_and_name(current_user.id, params[:oauth_client_app][:name]) @client_app ||= Oauth::ClientApp.create_with_user_and_name(current_user, params[:oauth_client_app][:name]) if @client_app.save # do nothing else render :new end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
opro-0.0.3 | app/controllers/oauth/client_app_controller.rb |
opro-0.0.2 | app/controllers/oauth/client_app_controller.rb |