Skip to content

Commit

Permalink
ValidationError is obsolete
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip (flip) Kromer committed May 4, 2011
1 parent 4e61c05 commit 93725bd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion examples/activerecord/srv.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ class Srv < Goliath::API
use Goliath::Rack::DefaultMimeType
use Goliath::Rack::Formatters::JSON
use Goliath::Rack::Render
use Goliath::Rack::ValidationError

use Goliath::Rack::Validation::RequiredParam, {:key => 'id', :type => 'ID'}
use Goliath::Rack::Validation::NumericRange, {:key => 'id', :min => 1}
Expand Down
4 changes: 2 additions & 2 deletions examples/rasterize/rasterize.rb
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
#!/usr/bin/env ruby
$: << File.dirname(__FILE__)+'/../../lib'
require 'goliath'
require 'postrank-uri'

Expand All @@ -6,9 +8,7 @@
# $> curl http://localhost:9000/?url=http://www.google.com (or rather, visit in the browser!)

class Rasterize < Goliath::API

use Goliath::Rack::Params
use Goliath::Rack::ValidationError

use Goliath::Rack::Validation::RequestMethod, %w(GET)
use Goliath::Rack::Validation::RequiredParam, {:key => 'url'}
Expand Down

0 comments on commit 93725bd

Please sign in to comment.