Skip to content

Commit

Permalink
Merge branch 'feature/namespacing'
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Holley committed Feb 27, 2012
2 parents 3d9ddc2 + 3c5244d commit 02bc139
Show file tree
Hide file tree
Showing 77 changed files with 5,922 additions and 6,579 deletions.
2 changes: 1 addition & 1 deletion Rakefile
@@ -1,4 +1,4 @@
require 'bundler'
require 'bundler/setup'

require 'rspec/core/rake_task'

Expand Down
43 changes: 0 additions & 43 deletions app/controllers/accounts_controller.rb

This file was deleted.

45 changes: 45 additions & 0 deletions app/controllers/plutus/accounts_controller.rb
@@ -0,0 +1,45 @@
module Plutus
# This controller provides restful route handling for Accounts.
#
# The controller supports ActiveResource, and provides for
# HMTL, XML, and JSON presentation.
#
# == Security:
# Only GET requests are supported. You should ensure that your application
# controller enforces its own authentication and authorization, which this
# controller will inherit.
#
# @author Michael Bulat
class AccountsController < ApplicationController
unloadable

# @example
# GET /accounts
# GET /accounts.xml
# GET /accounts.json
def index
@accounts = Account.all

respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @accounts }
format.json { render :json => @accounts }
end
end

# @example
# GET /accounts/1
# GET /accounts/1.xml
# GET /accounts/1.json
def show
@account = Account.find(params[:id])

respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @account }
format.json { render :json => @account }
end
end

end
end
44 changes: 44 additions & 0 deletions app/controllers/plutus/transactions_controller.rb
@@ -0,0 +1,44 @@
module Plutus
# This controller provides restful route handling for Transactions.
#
# The controller supports ActiveResource, and provides for
# HMTL, XML, and JSON presentation.
#
# == Security:
# Only GET requests are supported. You should ensure that your application
# controller enforces its own authentication and authorization, which this
# controller will inherit.
#
# @author Michael Bulat
class TransactionsController < ApplicationController
unloadable
# @example
# GET /transactions
# GET /transactions.xml
# GET /transactions.json
def index
@transactions = Transaction.all

respond_to do |format|
format.html # index.html.erb
format.xml { render :xml => @transactions }
format.json { render :json => @transactions }
end
end

# @example
# GET /transactions/1
# GET /transactions/1.xml
# GET /transactions/1.json
def show
@transaction = Transaction.find(params[:id])

respond_to do |format|
format.html # show.html.erb
format.xml { render :xml => @transaction }
format.json { render :json => @transaction }
end
end

end
end
42 changes: 0 additions & 42 deletions app/controllers/transactions_controller.rb

This file was deleted.

57 changes: 0 additions & 57 deletions app/models/account.rb

This file was deleted.

81 changes: 0 additions & 81 deletions app/models/asset.rb

This file was deleted.

0 comments on commit 02bc139

Please sign in to comment.