fix object auth. show error message if user try to do object auth in a wrong way.
This commit is contained in:
1 parent
9937b4ac9b
commit
32c6f17613
7 files changed
+68
-6
No files matched your search
@@ -0,0 +1,16 @@
|
||||
module OrbitApp
|
||||
module ErrorHandlers
|
||||
module ObjectAuthErrorHandler
|
||||
|
||||
|
||||
def render_object_auth_error(exception = nil)
|
||||
default_message = 'This is a render_object_auth_error'
|
||||
meaasge = ''
|
||||
if exception
|
||||
meaasge = default_message + exception.message
|
||||
end
|
||||
render :text=>meaasge
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
@@ -328,4 +328,8 @@ namespace :migrate do
|
||||
|
||||
end
|
||||
|
||||
task :clean_object_auth => :environment do
|
||||
ObjectAuth.destroy_all
|
||||
end
|
||||
|
||||
end
|
||||
Reference in new issue
Block a user