forked from mbulat/plutus
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
77 changed files
with
5,922 additions
and
6,579 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
require 'bundler' | ||
require 'bundler/setup' | ||
|
||
require 'rspec/core/rake_task' | ||
|
||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.