Created
February 3, 2015 04:23
-
-
Save jcypret/183458b3bfa8a5574c8e to your computer and use it in GitHub Desktop.
Module for creating service objects
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Service | |
extend ActiveSupport::Concern | |
included do | |
def self.call(*args) | |
new(*args).call | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment