Template generators for service abstractions in Rails applications
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib
test
.DS_Store
.gitignore
Gemfile
Gemfile.lock
MIT-LICENSE
README.md
Rakefile
paradigm-0.1.0.gem
paradigm.gemspec

README.md

Version Rating

Paradigm: abstractions so good you'll cry

Easily add Service abstractions into your Rails app with template generators

Getting Started

Add the gem to your application Gemfile:

gem 'paradigm'

Run bundle install

Next, you need to run the generator:

rails generate paradigm:install

Generators

Services

Top level services

rails generate paradigm:service user_creation

Sets up a app/services directory with a user_creation_service.rb file. Also adds a user_creation_service_test.rb file in the test/services directory.

Nested services

rails generate paradigm:service account::user_creation

Sets up a app/services/account directory with a user_creation_service.rb file. Also adds a user_creation_service_test.rb file in the test/services/account directory.

Copyright and Licenses

Paradigm is copyright © 2016 Glenn Espinosa and released under the MIT license.