Skip to content

sunny/actor-rails

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
bin
 
 
lib
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

ServiceActor-Rails

Tests

ServiceActor-Rails provides Rails support for the ServiceActor gem.

Installation

Add these lines to your application's Gemfile:

# Composable service objects
gem "service_actor-rails"

Usage

You can use the actor generator:

rails generate actor create_order

Creates app/actors/create_order.rb:

class CreateOrder < Actor
  def call
  end
end

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake to run the tests and linting. You can also run bin/console for an interactive prompt.

To release a new version, update the version number in version.rb, and in the CHANGELOG.md, run rake, and create a commit for this version. You can then run rake release, which will create a git tag for the version, push git commits and tags, and push the gem to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub.

This project is intended to be a safe, welcoming space for collaboration, and everyone interacting in the project’s codebase and issue tracker is expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

Actor Rails provides Rails support to the Actor service objects

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published