remove extraneous Metadata#create
authorTom Clegg <tom@clinicalfuture.com>
Wed, 16 Jan 2013 22:43:25 +0000 (14:43 -0800)
committerTom Clegg <tom@clinicalfuture.com>
Wed, 16 Jan 2013 22:43:25 +0000 (14:43 -0800)
app/controllers/orvos/v1/metadata_controller.rb

index c1ebf2554b320be6906b84a844c9a93dbecf8f1f..349f1e07ad1a05d8ce461bcc80b6cac6e6b28e91 100644 (file)
@@ -6,22 +6,4 @@ class Orvos::V1::MetadataController < ApplicationController
     end
     super
   end
-
-  def create
-    @m = params[:metadatum]
-    if params[:metadatum].class == String
-      @m = uncamelcase_hash_keys(JSON.parse params[:metadatum])
-    end
-    @m = Metadatum.new @m
-    respond_to do |format|
-      if @m.save
-        format.html { redirect_to @m, notice: 'Metadatum was successfully created.' }
-        format.json { render json: @m, status: :created, location: @m }
-      else
-        format.html { render action: "new" }
-        format.json { render json: @m.errors, status: :unprocessable_entity }
-      end
-    end
-  end
-
 end