Business Actions architecture for Rails apps
Granite is an alternative Rails application architecture framework.
Add this line to your application's Gemfile:
gem 'granite'And then execute:
$ bundleOr install it yourself as:
$ gem install granitePlease see our official documentation or check the granite application example.
We use semantic versioning for our releases.
Bug reports and pull requests are welcome on GitHub at https://github.com/toptal/granite.
This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
To run specs you can run
bin/setup
docker-compose up
rspecAdd this to your Rubocop config file:
plugins:
- granite:
require_path: rubocop-graniteThe plugin system requires RuboCop 1.72+. For earlier versions, use require: rubocop-granite instead.
This will add config for Lint/UselessAccessModifier to treat projector as separate context. It is equivalent to:
Lint/UselessAccessModifier:
ContextCreatingMethods:
- projectorGranite is released under the MIT License.
No open issues yet, or sync has not completed.