Skip to content

substancelab/substance_operation

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

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages