diff options
author | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
---|---|---|
committer | Christoph Helma <helma@in-silico.ch> | 2011-06-06 16:54:56 +0000 |
commit | 7bbc70d38d81a5a57d90c525d90ccf7bf8f59426 (patch) | |
tree | 34c43ef139456436b32ec42128c9162be8205d59 /lib | |
parent | b542cfbd54901ad86d60fed03c8a05f9151f7616 (diff) |
halts (partially) substituted by OpenTox errors
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/active_record_setup.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/active_record_setup.rb b/lib/active_record_setup.rb index b43e692..5f081af 100755 --- a/lib/active_record_setup.rb +++ b/lib/active_record_setup.rb @@ -34,7 +34,7 @@ class ActiveRecord::Base unless self.column_names.include?(key) err = "no attribute found: '"+k.to_s+"'" # if $sinatra -# $sinatra.halt 400,err +# $sinatra.raise OpenTox::BadRequestError.newerr # else raise err # end @@ -47,4 +47,4 @@ class ActiveRecord::Base #puts "params after "+filter_params.inspect self.find(:all, :conditions => filter_params) end -end
\ No newline at end of file +end |