diff options
author | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 09:25:39 +0200 |
---|---|---|
committer | mguetlein <martin.guetlein@gmail.com> | 2010-09-07 09:25:39 +0200 |
commit | 7d69d09e79882cb826dacac2b6474fade13e8690 (patch) | |
tree | c1acc2b07627bbb787a1e4d24a425c90283277aa /lib | |
parent | 9ec38f1ebaffa51cac69e5e1a09c988556a690a1 (diff) |
add validation to qmrf-report, bootstrapping
Diffstat (limited to 'lib')
-rw-r--r-- | lib/active_record_setup.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/active_record_setup.rb b/lib/active_record_setup.rb index 85690b6..cea4fb2 100644 --- a/lib/active_record_setup.rb +++ b/lib/active_record_setup.rb @@ -28,7 +28,7 @@ class ActiveRecord::Base key = key+"_uri" unless self.column_names.include?(key) key = key+"s" - raise "no attribute found: '"+k.to_s+"'" unless self.column_names.include?(key) + $sinatra.halt 400,"no attribute found: '"+k.to_s+"'" unless self.column_names.include?(key) end end end |