Skip to content

Instantly share code, notes, and snippets.

@pewniak747
Created July 10, 2014 13:21
Show Gist options
  • Save pewniak747/78195c90313078e8a126 to your computer and use it in GitHub Desktop.
Save pewniak747/78195c90313078e8a126 to your computer and use it in GitHub Desktop.
app/
services/
create_invoice.rb
correct_invoice.rb
pay_invoice.rb
register_user.rb
register_user_with_google.rb
change_password.rb
@nekath
Copy link

nekath commented Jul 31, 2014

Chyba lepiej trzymać się patternu takiego, moja dygresja jedynie.

app/
  services/
    invoice/
      create.rb
      correct.rb
      pay.rb
    user/
      register.rb
      register_with_google.rb
      change_password.rb

Dzięki temu ładnie można podzielić na namespace. Invoice::Create etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment