Module: RestfulResource::RailsValidations::ClassMethods
- Defined in:
- lib/restful_resource/rails_validations.rb
Instance Method Summary collapse
- #delete ⇒ Object
- #get ⇒ Object
- #patch(id, data: {}, **others) ⇒ Object
- #post(data: {}) ⇒ Object
- #put(id, data: {}, **others) ⇒ Object
Instance Method Details
#delete ⇒ Object
20 21 22 |
# File 'lib/restful_resource/rails_validations.rb', line 20 def delete(*) with_validations { super } end |
#get ⇒ Object
16 17 18 |
# File 'lib/restful_resource/rails_validations.rb', line 16 def get(*) with_validations { super } end |
#patch(id, data: {}, **others) ⇒ Object
8 9 10 |
# File 'lib/restful_resource/rails_validations.rb', line 8 def patch(id, data: {}, **others) with_validations(id, data: data) { super } end |
#post(data: {}) ⇒ Object
12 13 14 |
# File 'lib/restful_resource/rails_validations.rb', line 12 def post(data: {}, **) with_validations(data: data) { super } end |
#put(id, data: {}, **others) ⇒ Object
4 5 6 |
# File 'lib/restful_resource/rails_validations.rb', line 4 def put(id, data: {}, **others) with_validations(id, data: data) { super } end |