Module: Stay::ControllerExtensions
- Defined in:
- lib/stay/controller_extensions.rb
Instance Method Summary collapse
Instance Method Details
#stay_response(obj) ⇒ Object
3 4 5 |
# File 'lib/stay/controller_extensions.rb', line 3 def stay_response(obj) obj.changed? ? response_error(obj) : response_ok(obj) end |