Sha256: 2a6feadfb0b701b64d4e5a7625d2c912686f5d26c91b231c967e94da3cba6937
Contents?: true
Size: 798 Bytes
Versions: 5
Compression:
Stored size: 798 Bytes
Contents
module Doorkeeper class ApplicationsController < ApplicationController respond_to :html before_filter :authenticate_admin! def index @applications = Application.all end def new @application = Application.new end def create @application = Application.new(params[:application]) flash[:notice] = "Application created" if @application.save respond_with @application end def show @application = Application.find(params[:id]) end def edit @application = Application.find(params[:id]) end def update @application = Application.find(params[:id]) flash[:notice] = "Application updated" if @application.update_attributes(params[:application]) respond_with @application end end end
Version data entries
5 entries across 5 versions & 1 rubygems