Class: Response
- Inherits:
-
Object
- Object
- Response
- Defined in:
- app/models/response.rb
Class Method Summary collapse
- .failed_user_authentication_response ⇒ Object
- .user_authentication_disabled_organization_response ⇒ Object
Class Method Details
.failed_user_authentication_response ⇒ Object
3 4 5 6 7 8 9 10 11 |
# File 'app/models/response.rb', line 3 def self.failed_user_authentication_response { :json => { :success=>false, :message => "Please Enter Correct Email/Password" }, :status => 400 } end |
.user_authentication_disabled_organization_response ⇒ Object
13 14 15 16 17 18 19 20 21 |
# File 'app/models/response.rb', line 13 def self.user_authentication_disabled_organization_response { :json =>{ :success=>false, :message => "Please renew your subscription or Contact your supplier" }, :status => 401 } end |