nebulab / simple_command

A simple, standardized way to build and use Service Objects (aka Commands) in Ruby
http://nebulab.it
MIT License
625 stars 55 forks source link

Allow using ActiveModel::Validation errors #19

Closed bguban closed 5 years ago

bguban commented 5 years ago

Now if you use simple_command in Rails you can include ActiveModel::Validations into class and use it's errors functionality which is match wider.

PS Could you release a new ruby gem? Because the current one is 4 years old.

kennyadsl commented 5 years ago

Hey there, I'm ok with this change but can you please remove the version change from this PR? It will be handled separately. Thanks!

bguban commented 5 years ago

Hey there, I'm ok with this change but can you please remove the version change from this PR? It will be handled separately. Thanks!

@kennyadsl, Done. Would you like me to add some documentation for this functionality?

kennyadsl commented 5 years ago

Yes, it would be great. Thanks!

bguban commented 5 years ago

Hi @kennyadsl, I updated the documentation a little. Could you take a look?

kennyadsl commented 5 years ago

Thank you!