--- /dev/null
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the Humans controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class HumansController < ApplicationController
+end
--- /dev/null
+module HumansHelper
+end
--- /dev/null
+class Human < ArvadosBase
+end
# end
ActiveSupport::Inflector.inflections do |inflect|
- inflect.plural /^(specimen)$/i, '\1s'
- inflect.singular /^(specimen)s/i, '\1'
+ inflect.plural /^([Ss]pecimen)$/i, '\1s'
+ inflect.singular /^([Ss]pecimen)s?/i, '\1'
+ inflect.plural /^([Hh]uman)$/i, '\1s'
+ inflect.singular /^([Hh]uman)s?/i, '\1'
end
ArvadosWorkbench::Application.routes.draw do
+ resources :humans
+
+
resources :traits
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+# This model initially had no columns defined. If you add columns to the
+# model remove the '{}' from the fixture names and add the columns immediately
+# below each fixture, per the syntax in the comments below
+#
+one: {}
+# column: value
+#
+two: {}
+# column: value
--- /dev/null
+require 'test_helper'
+
+class HumansControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class HumansHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class HumanTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+# Place all the behaviors and hooks related to the matching controller here.
+# All this logic will automatically be available in application.js.
+# You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
--- /dev/null
+// Place all the styles related to the Humans controller here.
+// They will automatically be included in application.css.
+// You can use Sass (SCSS) here: http://sass-lang.com/
--- /dev/null
+class Arvados::V1::HumansController < ApplicationController
+end
--- /dev/null
+module HumansHelper
+end
--- /dev/null
+class Human < ArvadosModel
+ include AssignUuid
+ include KindAndEtag
+ include CommonApiTemplate
+ serialize :properties, Hash
+
+ api_accessible :superuser, :extend => :common do |t|
+ t.add :properties
+ end
+end
ActiveSupport::Inflector.inflections do |inflect|
inflect.plural /^([Ss]pecimen)$/i, '\1s'
inflect.singular /^([Ss]pecimen)s?/i, '\1'
+ inflect.plural /^([Hh]uman)$/i, '\1s'
+ inflect.singular /^([Hh]uman)s?/i, '\1'
end
Server::Application.routes.draw do
+ resources :humans
resources :traits
resources :repositories
resources :virtual_machines
resources :virtual_machines
resources :repositories
resources :traits
+ resources :humans
end
end
--- /dev/null
+class CreateHumans < ActiveRecord::Migration
+ def change
+ create_table :humans do |t|
+ t.string :uuid, :null => false
+ t.string :owner, :null => false
+ t.string :modified_by_client
+ t.string :modified_by_user
+ t.datetime :modified_at
+ t.text :properties
+
+ t.timestamps
+ end
+ add_index :humans, :uuid, :unique => true
+ end
+end
#
# It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20130627154537) do
+ActiveRecord::Schema.define(:version => 20130627184333) do
create_table "api_client_authorizations", :force => true do |t|
t.string "api_token", :null => false
add_index "groups", ["modified_at"], :name => "index_groups_on_modified_at"
add_index "groups", ["uuid"], :name => "index_groups_on_uuid", :unique => true
+ create_table "humans", :force => true do |t|
+ t.string "uuid", :null => false
+ t.string "owner", :null => false
+ t.string "modified_by_client"
+ t.string "modified_by_user"
+ t.datetime "modified_at"
+ t.text "properties"
+ t.datetime "created_at"
+ t.datetime "updated_at"
+ end
+
+ add_index "humans", ["uuid"], :name => "index_humans_on_uuid", :unique => true
+
create_table "job_tasks", :force => true do |t|
t.string "uuid"
t.string "owner"
--- /dev/null
+# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/Fixtures.html
+
+one:
+ uuid: MyString
+ owner: MyString
+ modified_by_client: MyString
+ modified_by_user: MyString
+ modified_at: 2013-06-27 14:43:33
+ properties: MyText
+
+two:
+ uuid: MyString
+ owner: MyString
+ modified_by_client: MyString
+ modified_by_user: MyString
+ modified_at: 2013-06-27 14:43:33
+ properties: MyText
--- /dev/null
+require 'test_helper'
+
+class HumansControllerTest < ActionController::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end
--- /dev/null
+require 'test_helper'
+
+class HumansHelperTest < ActionView::TestCase
+end
--- /dev/null
+require 'test_helper'
+
+class HumanTest < ActiveSupport::TestCase
+ # test "the truth" do
+ # assert true
+ # end
+end