Skip to content

About

Make it easier to create user based operations

Resources

Stars

0 stars

Watchers

2 watching

Forks

Latest commit

 

History

83 Commits

Folders and files

Repository files navigation

SubstanceOperation

Make it easier to create user based operations

Build Status

Usage examples

Create a class based on the Substance::Operation class, with its bespoke process method:

class UserOperation < Substance::Operation
  def process(*)
    true
  end
end

Initialize it with a user and run it with the necessary parameters for the operation:

operation = UserOperation.new(user)
operation.process(params)
result = operation.success?

License

SubstanceOperation is licensed under the MIT license. See LICENSE for details.

About

Make it easier to create user based operations

Resources

Stars

0 stars

Watchers

2 watching

Forks

Releases

Packages

Used by

Contributors

Languages